This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes Struts and the fly likes iterate Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "iterate" Watch "iterate" New topic
Author

iterate

Narendra Kumar Pinnaka
Greenhorn

Joined: Jul 05, 2007
Posts: 9
Hi
i am using Struts 1.1.
i have list of dto. in jsp i have to display the dto based on the index

sample java code
int n = 3;

sampleDTO = (SampleDTO)mylist.get(n);

i need to display sample dto

can you please let me know apporiate tag i can use.

thanks in advance
Zip Ped
Ranch Hand

Joined: Jul 26, 2005
Posts: 336
You can use the indexId attribute of the logic:iterate tag.
Narendra Kumar Pinnaka
Greenhorn

Joined: Jul 05, 2007
Posts: 9
can you expalin it clearly
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: iterate
 
Similar Threads
Designing DTO and ActionForm
issue in displaying the body content(fetched dynamically) of the h:dataTable
problem with logic:iterate
Hibernate and DTO
ActionForm vs Transfer Object