struts2 - Data type converter not working with embedded object in Struts 2 -


i'm creating data type converter within struts 2 framework , got problem below:

in action conversion property file, need specify property this:

foo.field1.field2 = coverterclassname 

field1 embedded object within foo, has field2 1 of fields.

i have tried , couldn't make working unless put property file

into same package class foo, hooks struts2 model class.

has had problem before , there other solution it?

because doing class wide conversion, conversion property file should

in same location of classpath target bean.

if target bean action bean, should in same package action class. more applying type converter bean or model.

you might see this answer how apply application wide conversion field type. note, can same type conversion using annotations.


Comments

Popular posts from this blog

google api - Incomplete response from Gmail API threads.list -

Installing Android SQLite Asset Helper -

Qt Creator - Searching files with Locator including folder -