A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
JavaRanch
»
Java Forums
»
Frameworks
»
Struts
Author
iterate
Narendra Kumar Pinnaka
Greenhorn
Joined: Jul 05, 2007
Posts: 9
posted
Jul 13, 2007 09:28:00
0
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
posted
Jul 13, 2007 10:14:00
0
You can use the indexId attribute of the logic:iterate tag.
Narendra Kumar Pinnaka
Greenhorn
Joined: Jul 05, 2007
Posts: 9
posted
Jul 13, 2007 10:31:00
0
can you expalin it clearly
I agree. Here's the link:
http://aspose.com/file-tools
subject: iterate
Similar Threads
issue in displaying the body content(fetched dynamically) of the h:dataTable
Hibernate and DTO
problem with logic:iterate
ActionForm vs Transfer Object
Designing DTO and ActionForm
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter