You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by Janne Mattila <ja...@hotmail.com> on 2004/08/10 09:32:47 UTC
SelectTag using a collection property?
Hi,
I am learning struts and found out that select tag which renders a multiple
options select box takes an array instead of a collection. Are there any
plans to enable selectTag to use also collections?
It seems unintuitive to mandate the use of arrays as the nested options can
be populated using collections. Also, it seems that support for collections
is halfway there already (at least Struts 1.1 release that I am using). If I
model selected options as a collection in the form bean, and give that
collection to the select tag on JSP, the page is rendered without problems.
Problems occur only when the form is submitted
(javax.servlet.ServletException: BeanUtils.populate at
org.apache.struts.util.RequestUtils.populate(RequestUtils.java:1254)
_________________________________________________________________
Add photos to your e-mail with MSN 8. Get 2 months FREE*.
http://join.msn.com/?page=features/featuredemail
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org