Though not suitable for all situations, I've solved this problem in the past by mapping type conversion to the bean rather than to the action. Check out:

http://struts.apache.org/2.x/docs/type-conversion.html#TypeConversion-ApplyingaTypeConvertertoabeanormodel

So in MyBean-conversion.properties you would define something like:
Element_secondBeans=com.whatever.MySecondBean

I've also heard that there is a generics-based type converter that might solve this assuming you properly annotate the lists? Unfortunately, I'm stuck on java4, so not an option for me.

Torsten Krah wrote:
Am Donnerstag, 9. Oktober 2008 18:17:57 schrieb Dave Newton:
Use Map/array notation in the field name.

http://struts.apache.org/2.x/docs/type-conversion.html

Dave

Can this be stacked?
My Action got a List of MyBean and in MyBean there is a List of MySecondBean from which the value is taken. MySecondBean.getValue(). How to express this?


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

Reply via email to