This question has been answered *numerous* times on the list.  Here's one 
http://marc.theaimsgroup.com/?l=struts-user&m=103376038703245&w=2.  

As it says there, please take a look at the html-select.jsp that is part of the 
struts-exercise-taglib application that ships with struts.

Sri

-----Original Message-----
From: Yann Verlynde [mailto:[EMAIL PROTECTED]] 
Sent: Friday, November 22, 2002 9:04 AM
To: Struts
Subject: How pre-select an <html:select>?


Hello,

I have a problem with html:select preselection?
I have a value in my request (select_CMP) when I going to my JSP page and I want to 
preselect an element of my options list. I use this code to produce my select.

<html:select property="select_CMP" onchange="choixSelectCMP(this)">
   <html:options collection="CMP" labelProperty="CMP_LIB" property="CMP_ID"/> 
</html:select>

CMP is an ArrayList stored in the request.

Thanks in advance


Yann VERLYNDE
Ing�nieur d'Etudes
Oxade Ing�nierie
13, Place Kossuth
75009 PARIS

Tel  : 01 42 82 99 38
Fax : 01 42 82 99 35
www.oxade.com


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to