struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eric Jain" <Eric.J...@isb-sib.ch>
Subject Generating html:option tags with JSTL
Date Thu, 02 Jan 2003 13:51:28 GMT
I'm trying to generate a list of options:

  <html:select property="year">
    <jstl:forEach var="y" begin="1986" end="2003">
      <html:option value="${y}"><jstl:out value="${y}"/></html:option>
    </jstl:forEach>
  </html:select>


But this produces the following output:

  <option value="${y}">1987</option>
  ...


Any suggestions how to get this right?


--
Eric Jain


--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>


Mime
View raw message