Struts' <html:select> and <html:options> tag will do this for you.  The
options tag is best utilized with an ArrayList of LabelValueBean's (part
of Struts).  Then you simply set the property value of <html:select> to
a property on your form, and it'll select the appropriate value.

HTH,

Matt

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of 
> Peyathevar, Santhi {PBG}
> Sent: Thursday, March 20, 2003 7:13 PM
> To: 'Geeta Ramani'; mvc
> Subject: [MVC-Programmers] help JSTL / html Select
> 
> 
> All:
> 
> Is there any JSTL / Struts Tag that would help restoring the 
> selection of 
> html 'Select' box across submits / actions ?
> 
> David Geary's "Advanced JSP" gives an idea. And there is a 
> "Format Tag" from somebody. I would like to use JSTL if possible.
> 
> * This is not a lab related issue.
> 
> Thank you for your help.
> Santhi
> _______________________________________________
> MVC-Programmers mailing list
> [EMAIL PROTECTED] 
> http://www.basebeans.net:8080/mailman/listinfo> /mvc-programmers
> 


_______________________________________________
MVC-Programmers mailing list
[EMAIL PROTECTED]
http://www.basebeans.net:8080/mailman/listinfo/mvc-programmers

Reply via email to