This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes Struts and the fly likes pre-select in html:select Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "pre-select in html:select" Watch "pre-select in html:select" New topic
Author

pre-select in html:select

Rajesh Srivastava
Greenhorn

Joined: May 14, 2004
Posts: 25
Hi everyone

I need help on pre selecting items in html:select.
Thanks in advance

Rajesh
SCJP, SCBCD, OCP

When I see through the fog I see myself...

Kinjal Sonpal
Ranch Hand

Joined: Jun 06, 2003
Posts: 96
Hi Rajesh,

It's pretty straight. Just assign a value to the property, which you are going to use for the <html: select>. It'll be prepopulated.

Btw, for exact code and greater details, search the archive. It's one of the regularly asked questions.

Thanks and regards,
Kinjal Sonpal
 
wood burning stoves
 
subject: pre-select in html:select