hi all,
in my struts web application,
i am setting up like this in my controller class:
req.setAttribute(item,itemList);
and using as below to get the dropdownlist which is working fine.
<html:select property="itemType" styleId="itemType">
<html:option value="">Please Select</html:option
<%List aList = (List) request.getAttribute(item);
Iterator i = aList .iterator();
while (i.hasNext()) {
String aValue = (String) i.next();%>
<html:option value="<%=aValue %>">
<%=aValue %>
</html:option>
<%}%>
</html:select>
this is working quite fine now but i want to use logic iterate to go through the array.my main intention is to minimize java code in my jsp.
how can i use logic ierate to loop through?
any ideas?
regards and thanks in advance