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:59:53 GMT

Okay, I'm officially very confused as to what should and shouldn't be used
since apparently the documentation example is not correct.

Let me level set with what each of my files contains again:

[xwork-conversion.properties]
Element_settings=com.rjssoft.webdocs.setting.Setting

According to the documentation, this tells the settings element that it is
supposed to contain Setting objects which is true and needs to be in the
conversion properties.

[Setting.java]
See this link for the code: http://pastie.org/419187

[SettingList.java]
See this link for the code: http://pastie.org/419190

SettingLists are simple ArrayLists containing Setting beans.

[SettingAction.java]
See this link for the code: http://pastie.org/419191

The relevant section is where we go from the view.jsp, submit the form which
then tries to call the update() method of SettingAction...it never gets
there because it throws the exceptions noted in previous emails.

[view.jsp]
See this link for the relevant code: http://pastie.org/419192

What am I missing that isn't in the documentation or is incorrect?  

Ryan


Lukasz Lenart wrote:
> 
> 2009/3/17 ryangr <griggsrl@gmail.com>:
>> com.rjssoft.webdocs.setting.SettingList=com.rjssoft.webdocs.setting.Setting
> 
> What this is for?
> 
>> com.rjssoft.webdocs.setting.SettingList=com.rjssoft.webdocs.converter.SettingListConverter
> 
> This tells Xwork which converter to call if it will need to convert
> Array to SettingList
> 
> 
> 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-tp22497261p22568785.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