struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Milan Milanovic <milanmilanov...@yahoo.com>
Subject [Struts 2] Simple combobox behaviour
Date Thu, 15 May 2008 20:19:12 GMT
Hi,

I have simple class Fruit, that have "id" (long), "name" (String), and "buyers" List of <Person>.
In my action class I have Fruit fruit; object with get/set methods.

In my jsp I have combo box defined like this:

<s:select id="buyers" labed="Buyer" list="buyers" name="fruit.buyers" emtpyOption="false"
value = "fruit.buyers" hedaerKey="none" multiple="false"/>

and when I sumbit form that contain this combo box, it generates following error:

22:16:18,281 ERROR com.opensymphony.xwork2.interceptor.ParametersInterceptor:204 - ParametersInterceptor
- [setParameters]: Unexpected Exception caught setting 'fruit.buyers' on class 'com.myproject.actions.FruitAction':
Error setting expression 'fruit.buyers' with value '[Ljava.lang.String;@15b4492'



       
Mime
  • Unnamed multipart/alternative (inline, 8-Bit, 0 bytes)
View raw message