wood burning stoves 2.0*
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 Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "html: options tag" Watch "html: options tag" New topic
Author

html: options tag

kailas simha
Greenhorn

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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: html: options tag
 
Similar Threads
question on drop down list box
Drop Down Box in Struts - Select Default Value Implementation
Session values of a Backing Bean in JSF
JSTL sql taglib and html drop down box
Drop down from DataBase problem