struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "A. Lotfi" <majidna...@yahoo.com>
Subject Struts1.x, populate dropdown from array of strings
Date Fri, 10 Jan 2014 14:43:54 GMT
Hi,
I have an action that sent an array of strings :
 private static final String METADATA_ATTRIBUTE_TYPES = "icTypes";

........
 request.setAttribute(METADATA_ATTRIBUTE_TYPES, icTypesList);

 return mapping.findForward(SUCCESS);


in my jsp file I did :

<label class="formLabel">Transfer Type</label>   
             <html:select title="Environment" styleId="type" property="valueTransferType"
styleClass="criteria">   
                 <html:option value="ALL">ALL</html:option>
                <logic:iterate id="transType" name="icTypes">   
                 <html:option value="${transType}"><%=transType%></html:option>
               </logic:iterate>
                </html:select>

When I run the project, it's working fine, I can see all the values in the drop down menu,
but the jsp still show an error in this line :

  <html:option value="${transType}"><%=transType%></html:option>

It said :

Cannot find symbole
symbole: variable transType


Thanks, your help is appreciated.
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message