Merrill Higginson wrote:The main advantage the <html:select><html:option> combination offers over using the plain html versions of the tags is that the option that matches the value of the form bean's property specified in the <html:select> tag will automatically show as selected when the page is displayed. If you don't need this functionality (and you don't if there's only one option), you might as well just use the plain html tags.
The code below will work just fine.
<select name="currentManager">
<option value="<bean:write name="transferForm" property="currentManager" />"><bean:write name="transferForm" property="currentManager" /> </option>
</select>
The question arises, though: Why are you only showing the current manager in the list, and not the entire list of managers to choose from? As explained above, if you use the <html:select> tag properly, you can show the entire list and have the current manager pre-selected on that list.
[ March 15, 2006: Message edited by: Merrill Higginson ]