html-el:select and html:optionsCollection
843840Sep 3 2007 — edited Sep 3 2007I have a SELECT in which I'm populating the options from a Collection using code like this:
<html:optionsCollection
name="<%=SearchRatesForm.FIELD_DROP_DOWN_MENU%>"
property="<%=DropDownMenu.SELECTED_LOAN_PROGRAM_LIST%>"
label="<%=SearchRatesForm.FIELD_PROGRAM_DESC%>"
value="<%=SearchRatesForm.FIELD_PROGRAM_CODE%>"/>
Does anyone know of a way in which I can pre-select a specific item in the drop-down list. I want to add 'SELECTED' to a specific item so that it's high-lighted in the list and the drop down is positioned at that item, short of going back to a regular <SELECT> and <OPTIONS> tag.