File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
I agree. Here's the link:
subject: pre-select in html:select
It's not a secret anymore!