Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

condition check using struts tags

 
Christian Nash
Ranch Hand
Posts: 107
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all,

i have a loop and i need to check if the value in the loop is a multiple of 2. how can i do this using only struts tags? i tried using the % operator but then i was getting a servlet error.
i.e.
i want to convert the following code using only struts tags
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic