You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Felipe Rodrigues <fe...@yahoo.com.br> on 2007/04/09 21:16:48 UTC

Type-Conversion at Struts2 - NPE

Hi Guys,
I'm trying to use the Type Conversion at Struts2, but I'm getting a NPE.

Here is my MyAction-conversion.properties file:

KeyProperty_insertList=id
Element_insertList=my.package.MyBean
CreateIfNull_insertList=true

MyAction has the attribute List<MyBean> insertList as well as its setters
and getters.

Does somebody knows if it is required to override toString in MyBean?

I'm also trying to set a value of a Bean inside a Map under my Bean.
Something like this:

insertList('%{id}').movMap['5'].value

Would it work?

Thanks in Advance,

Felipe
-- 
View this message in context: http://www.nabble.com/Type-Conversion-at-Struts2---NPE-tf3549015.html#a9907747
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