Get the tools you need to learn Java skills fast!
Video tutorials, eBooks, hands-on lab exercises, sample code.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
The Software Craftsman
this week in the
html: options tag
Joined: May 29, 2002
Jan 07, 2005 13:57:00
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?
Joined: Nov 17, 2004
Jan 07, 2005 15:26:00
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:
subject: html: options tag
question on drop down list box
Drop down from DataBase problem
Session values of a Backing Bean in JSF
Drop Down Box in Struts - Select Default Value Implementation
JSTL sql taglib and html drop down box
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015