I'm sitting on a patch of RequestUtils where I fixed bug 21679. 
However, it looks like it will break previous code that had String[]
scalar fields in the ActionForms. 

I created a function that converts request parameter values of String[]
with length > 1 to ArrayLists.  So, they'll be populated by BeanUtils
properly into Maps.  However, since we can't tell (as far as I know)
whether a single value array from the request is meant to go to a bean's
scalar field or map, we can't wrap every incoming parameter value with
an ArrayList. Therefore, single selected values sent to beans will go as
Strings and the scalar field in the bean must be an Object (to accept
either String or List).  

Would this be the correct way of fixing the problem (and should I submit
the patch), or would it be more appropriate to fix the problem in
BeanUtils?

John


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

Reply via email to