> Is it possible to use old (Struts 1) select with struts 2. Short answer; not really.
> In case there are local list in JSP page in struts 1 which uses "option" to > display the list dynamically it has to be written in action class in struts > 2. > > The code for the current approach is below: > > > > <s:select name="locSubTypeCategory" cssStyle="width:130px" > onChange="populateLocID(document.forms[3].subType.value,document.forms[3].locSubTypeCategory.options[document.forms[3].locSubTypeCategory.selectedIndex].value)" > disabled="<%=(!canCreateBus);%>"> > > <% > > if(busCust!=null && busCust.size()>0){ > > for(int k=0;k<busCust.size();k++) > > { > locTypeInfo =(LocTypeInfo)busCust.get(k); > > %> > > <option value="<%=locTypeInfo.getLocSubType()%>"> > <%=locTypeInfo.getLocSubTypeDesc()%> </option> > > <% > > }} else if(corpCust!=null && corpCust.size()>0){ > > > for(int k=0;k<corpCust.size();k++) > > { > > locTypeInfo =(LocTypeInfo)corpCust.get(k); > > %> > [...] This is all in your JSP?! In any case, you'd probably be better off just not using S2 tags, or doing the *right* thing, and fixing your JSP. Dave --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org