This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Struts and the fly likes html: options tag Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "html: options tag" Watch "html: options tag" New topic

html: options tag

kailas simha

Joined: May 29, 2002
Posts: 5
I have a list of values held in the label bean. When I create the drop down, how do I make one of the values a "default"?

For Ex, if "John", "Jill", "Jennifer" and "Kim" are the options in a drop down, how do I make (force) "Jill" to be default when the page comes up?

Thanks !
s penumudi
Ranch Hand

Joined: Nov 17, 2004
Posts: 113
I guess you will be having a action form field for that drop down box. to that form field set "Jill" as value and it will get by default selected
subject: html: options tag
Similar Threads
Drop down from DataBase problem
Session values of a Backing Bean in JSF
Drop Down Box in Struts - Select Default Value Implementation
question on drop down list box
JSTL sql taglib and html drop down box