struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ryangr <grigg...@gmail.com>
Subject Re: Type conversion exceptions
Date Tue, 17 Mar 2009 21:35:01 GMT

If I do that, then there will be two lines as such in the properties file:

com.rjssoft.webdocs.setting.SettingList=com.rjssoft.webdocs.setting.Setting
com.rjssoft.webdocs.setting.SettingList=com.rjssoft.webdocs.converter.SettingListConverter

How will it know the difference? I followed the documentation where it said
to use () instead of [] which was apparently wrong, now putting
com.rjssoft.webdocs.setting.SettingList=com.rjssoft.webdocs.setting.Setting
instead of Element_settings like the examples...neither way works and this
is getting frustrating. :(

Making this change (with or without the second line) simply causes
exceptions to be thrown setting each of the 3 attributes:

ERROR com.opensymphony.xwork2.util.InstantiatingNullHandler  - Could not
create and/or set value back on to object
ognl.OgnlException: settings [java.lang.IllegalArgumentException: argument
type mismatch]

ERROR com.opensymphony.xwork2.interceptor.ParametersInterceptor  -
ParametersInterceptor - [setParameters]: Unexpected Exception caught setting
'settings[0].title' on 'class com.rjssoft.webdocs.admin.SettingAction: Error
setting expression 'settings[0].title' with value
'[Ljava.lang.String;@13acc52'


Ryan



Lukasz Lenart wrote:
> 
> 2009/3/17 ryangr <griggsrl@gmail.com>:
>> Element_settings=com.rjssoft.webdocs.setting.Setting
> 
> But you should put there
> com.rjssoft.webdocs.setting.SettingList =
> com.rjssoft.webdocs.setting.Setting
> 
> 
> Regards
> -- 
> Lukasz
> http://www.lenart.org.pl/
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Type-conversion-exceptions-tp22497261p22568375.html
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message