aspose file tools*
The moose likes Struts and the fly likes [struts 1.x]  using indexId of logic:iterate Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "[struts 1.x]  using indexId of logic:iterate" Watch "[struts 1.x]  using indexId of logic:iterate" New topic
Author

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

Jesus Angeles
Ranch Hand

Joined: Feb 26, 2005
Posts: 2061
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

Joined: Feb 15, 2005
Posts: 4864
You can use JSTL. Example:


Merrill
Consultant, Sima Solutions
Jesus Angeles
Ranch Hand

Joined: Feb 26, 2005
Posts: 2061
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

Joined: Feb 26, 2005
Posts: 2061
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

Joined: Feb 15, 2005
Posts: 4864
The JSP FAQ has this information.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: [struts 1.x] using indexId of logic:iterate