Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
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 Building Microservices this week in the Design forum!
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’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: pre-select in html:select
jQuery in Action, 3rd edition