Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

html-el:select and html:optionsCollection

843840Sep 3 2007 — edited Sep 3 2007
I 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.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 1 2007
Added on Sep 3 2007
1 comment
240 views