Do it in the action? >>> [EMAIL PROTECTED] 03/10/04 11:48 AM >>> Hi, Looking for aeasy way to sort entries in the drop down in my jsp, that are populated using the bean and <html: select> tag with options: collection: my code as of now is below:
<select name="fullName" style="width:225px"> <logic:iterate id="teacher" name="teachers"> <option value="<bean:write name="teacher" property ="employeeID"/>"> <bean:write name="teacher" property ="fullName"/> </option> </logic:iterate> </select> My other approach to create same drop down is: <html:select style="width:225px" property="fullName"> <html:options collection="teachers" property="teacher" labelProperty="fullName"/> </html:select> Thanks in advance --------------------------------- Do you Yahoo!? Yahoo! SiteBuilder - Free web site building tool. Try it! --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]