Unless you want lots of Java code in your JSPs, you need to develop an iterating tag. For example,
<select name="whatever">
<jsp:useBean id="newPeriod" scope="session"/>
<app:iterate id="thisPeriod" array="newPeriod"/>
<option><jsp:getProperty...
But that defeats the concept of trying to keep Java code out of the presetnation layer (JSP)... another solution, more elegant, and only slightly more time consuming, is to create new tags and use those.
For instance...
public class IsSuperUserTag extends BodyTagSupport {
public int...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.