Use the value attribute on the html:select tag.

 -----Original Message-----
From:   Jesse Vitrone [mailto:[EMAIL PROTECTED] 
Sent:   Wednesday, April 02, 2003 1:47 PM
To:     [EMAIL PROTECTED]
Subject:        html:select

I'm pretty new to the jsp tag stuff, and I need to do something that I would
think is pretty common, but I can't seem to do it without resorting to
scriptlets.
 
I have an Address, which has a String state on it.
I have a Collection of States which have an int id, and String name on them.
 
How can I generate a select list that defaults to the value that matches the
state on my Address?
 
Seems like this would be pretty common, but I can't find it anywhere :(
 
Thanks in advance,
    Jesse

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to