Two Laptop Bag*
The moose likes Struts and the fly likes Struts 2 - Setting and Incrementing integers in jsps 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 2 - Setting and Incrementing integers in jsps" Watch "Struts 2 - Setting and Incrementing integers in jsps" New topic
Author

Struts 2 - Setting and Incrementing integers in jsps

Mark Brownengland
Greenhorn

Joined: Apr 30, 2006
Posts: 26

I'm trying to create an int/Integer variable in my jsp using s:set. I then perform a check using a s:if making use of the integer variable I just created. Finally, I would like to increment this jsp set integer variable for each iteration in my s:iterator dependent upon satisfying a particular condition i.e. index % 6.

I would appreciate an example of how I could achieve this using these struts 2 tags.

Thanks in advance.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Struts 2 - Setting and Incrementing integers in jsps
 
Similar Threads
Quick question on session attributes
passing JS values in struts-2
Pass a Variable from JSP via JSP to an Action Servlet
setting a row value
[Struts 2] Use a JSP variable in struts2 tag