struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "A. Lotfi" <>
Subject Struts1.x, populate dropdown from array of strings
Date Fri, 10 Jan 2014 14:43:54 GMT
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"
                 <html:option value="ALL">ALL</html:option>
                <logic:iterate id="transType" name="icTypes">   
                 <html:option value="${transType}"><%=transType%></html:option>

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.
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message