Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

printing index of an collection in JSP using JSTL  RSS feed

 
James Workmen
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to print the index of an collection, as weel as the data
right now I am doing



I know I can do this,


but I cannot combine both,



Help!!
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66187
149
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


Notes:

1) I changed PROJECT_LIST to projectList according to accepted naming conventions.

2) varStatus creates a scoped variable of type LoopTagStatus which exports a number of useful properties, including the loop index.

3) I clicked 'disable smilies' when posting so that my <cut> tags don't look so surprised.
[ December 02, 2004: Message edited by: Bear Bibeault ]
 
James Workmen
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you, I appreciate your help and tips on posting.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!