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
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "pre-select in html:select" Watch "pre-select in html:select" New topic

pre-select in html:select

Rajesh Srivastava

Joined: May 14, 2004
Posts: 25
Hi everyone

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


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
It is sorta covered in the JavaRanch Style Guide.
subject: pre-select in html:select
jQuery in Action, 3rd edition