[Opensource] problem with multiple selects
Will
laidback at telus.net
Fri Feb 7 10:24:20 PST 2003
Helllo Parag,
If you are using the extended Expresso struts tags, I don't think you
need the option tag. In your Controller, just set your Input objects
ValidValue. [IE: copyToList.setValidValues(myDbObject.getValidValues())]
Then try this:
<html:select name="queryForm" property="/copyToList" />
Assuming that copyToList is an Input with it's ValidValues method set
and that you put this tag in a block iterator, it should work.
Will
-----Original Message-----
From: opensource-admin at jcorporate.com
[mailto:opensource-admin at jcorporate.com]On Behalf Of Parag Shah
Sent: February 6, 2003 11:24 PM
To: opensource at jcorporate.com
Subject: [Opensource] problem with multiple selects
Hi,
I am not able to get multiple select to work from my JSP. I am using the
Struts Tag library, in Expresso 5.0. Heres the code
<td>
<html:select multiple="true" property="copyTo">
<html:options name="queryForm" property="copyToList" />
</html:select>
</td>
copyTo is defined as String[]
copyToList is an ArrayList
queryForm is a subclass of ActionForm
When I make multiple selects, only the first value is stored in copyTo.
Has anyone had such a problem.
In case this is a Struts bug ... would there be any Struts-Expresso
integration issues if I put the latest Struts release in my Expresso
lib?
Thanks
Parag Shah
Adaptive Software Solutions
_______________________________________________
Opensource mailing list
Opensource at jcorporate.com
http://mail.jcorporate.com/mailman/listinfo/opensource
Archives: http://mail.jcorporate.com/pipermail/opensource/
More information about the Opensource
mailing list