Use JSTL's forEach with "begin" and "end" attributes.

<c:forEach begin="0" end="50" step="1" var="option">
        <c:out value="${option}"/>
</c:forEach>

-----Original Message-----
From: Barry Volpe [mailto:[EMAIL PROTECTED]
Sent: Monday, June 09, 2003 5:08 PM
To: Struts Users Mailing List
Subject: <html:options for simple 1-50 menu


What is the easiest way to create a menu with name and values of 1-50.

Should I do this strictly in my JSP?  Should I use a <% for loop %>?

Seems like alot of work to use <html:options Collection just to generate
numbers 1-50.

Barry



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to