File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 Murach's Java Servlets and JSP this week in the Servlets 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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: pre-select in html:select
 
Similar Threads
Setting a preselected value in a combo
Pull-down menus: How to scroll down to first pre-selected option
Ajax and jsp as response
Tips on using this discussion software
tag library