I have created a Java class method getmyPages() which returns iterator<Page>.
Now in HTML page I am able to instantiate the class and access other properties of this class.
However I want to iterate over this iterator the way currentPage.listChildren works.....
Since currentPage.listChildren returns iterator<Page>
I am also returning same.
However I am not able to ...... the HTML tag in which I am printing this comes out empty.