• Post Reply Bookmark Topic Watch Topic
  • New Topic

iterate  RSS feed

 
Narendra Kumar Pinnaka
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 336
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can use the indexId attribute of the logic:iterate tag.
 
Narendra Kumar Pinnaka
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can you expalin it clearly
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!