The moose likes Servlets and the fly likes setting initial value of combobox Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "setting initial value of combobox" Watch "setting initial value of combobox" New topic

setting initial value of combobox

Anthony Leroy

Joined: Aug 02, 2001
Posts: 20
is there a way to set the initial value of a combobox in a form? Let's say a combo box has 3 options: optA, optB and optC, in that order. Ordinarily, optA will be the default selected option. How can I make optC be the displayed option without rearranging the order of the options.
David O'Meara

Joined: Mar 06, 2001
Posts: 13459

g'day also,
Are we talking select boxes?

Add the word 'SELECTED' next to the option

will select optC without changing the order.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: setting initial value of combobox
It's not a secret anymore!