struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Amit Badheka" <>
Subject html:option with iterate
Date Mon, 28 Oct 2002 05:38:36 GMT
Hi all,

I have some code like below, where I am trying to create a select list using form bean property.
I am able to create it, but problem comes when I trying to put value for the option. To resolve
the problem I defined to <bean:define> vars, which I am bale to use well as I am using
categoryNm ,but when I put this value in value="" it gives me error
"cannot resolve symbol"

  <html:select property="categories" size="1">
        <logic:iterate id="cat" name="forwardForm"  property="categories">
           <bean:define id="categoryNm" name="cat" property="value"/>
           <bean:define id="categoryId" name="cat" property="key"/>
           <html:option value="<%=categoryId%>" ><%=categoryId%><%=categoryNm%></html:option>
            -----------Here categoryId value display but in value it gives error---------------------------------

Please help.

Amit Badheka.

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message