This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
    Bookmark Topic Watch Topic
  • New Topic

jsp with logic:iterate and logic:lessThan

 
albert kao
Ranch Hand
Posts: 252
  • Mark post as helpful
  • send pies
  • Report post to moderator
I am writing jsp page with Struts 1 which has the following requirements.
Option 1
Display "Owner" only once.
Display "X.jsp" after "Owner".

Option 2
Display "Owner1", "Owner2", to "Owner5"
Display "X.jsp" after "Owner1" and "Owner2"

Option 3
Display "Owner1", "Owner2", to "Owner5"
Display "X.jsp" after "Owner1" only

Option 4
Display "Owner1", "Owner2", to "Owner5"
Display "X.jsp" after "Owner1" only

The following code works for "Option" equal to 3 and 4.
How to modify it to work for all options (from 1 to 4)?
 
    Bookmark Topic Watch Topic
  • New Topic