This week's book giveaway is in the OCAJP forum.
We're giving away four copies of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) and have Khalid A Mughal & Rolf W Rasmussen on-line!
See this thread for details.
Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Struts 2 - Setting and Incrementing integers in jsps

 
Mark Brownengland
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic