File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
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:
- it saves me about five hours per week
subject: html: options tag
JSTL sql taglib and html drop down box
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
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013