• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

[struts 1.x] using indexId of logic:iterate

 
Jesus Angeles
Ranch Hand
Posts: 2068
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Is it possible to use the indexId, such that, for example, I want to process only the 3rd and 4th item in the collection, without using scriptlets?
[ June 05, 2008: Message edited by: Jesus Angeles ]
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can use JSTL. Example:
 
Jesus Angeles
Ranch Hand
Posts: 2068
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks.

That is exactly same as a struts 2 tag. (My project is conversion from struts 2 to 1. This will make it easier for me.)
 
Jesus Angeles
Ranch Hand
Posts: 2068
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
To be able to use jstl, for example, the 'if' tag only, what do I need to do to my application? e.g. edit web.xml? download and copy jars?

Hoping for comments.
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The JSP FAQ has this information.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic