This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android 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: 2049
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: 2049
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: 2049
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
 
Similar Threads
how to count entries in logic:iterate and display
getting data from a dynamic table in one JSP to another JSP
c:when test = .....problem
iterate
s:iterator within s:select