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’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
subject: Struts 2 - Setting and Incrementing integers in jsps