Really I was using a custom type converter (with annotations on getters & setters) but I had the problem that when typeconversionexception was thrown the dynamic contents on my web page (objects retrieved from db or from actions) didn't display.
Really I don't know what the problem was, i suspect something with interceptors, maybe paramters interceptor wasn't able to retrieve passed parameters, but it's just a theory.

Alessio Matteo
Software developer & It assistant
Descrizione: cid:image003.jpg@01CD3503.27DB9B50
Via Angelo di Pietro, 6
I-00165 Rome, Italy
Phone/Fax +39 06 6390339
E-mail amat...@transtecservices.com
www.transtecservices.com

Facebook - TransTec ServicesTwitter _TTServicesLinkedin
Please consider the environment before printing this email

Il 15/10/2013 10:40, Christoph Nenning ha scritto:
Thank you so much, I solved the special characters problems by setting 
the struts i18n constant to ISO-8859-1!
About the conversion error, I know it was a dev mode warning, but when 
the exception was thrown every dynamic content in my page disappeard... 
Anyway I solved the issue by declaring every action attribute as a 
string and using specific regex xml validators to deny invalid inputs. 
Then, in the action, I use parser and other utility methods to convert 
the attributes to their correct formats.

Regards



Instead of using strings as action members I would suggest to use custom 
TypeConverters:


https://struts.apache.org/release/2.0.x/docs/type-conversion.html


Note there is a TypeConversion annotation, too. That can be used to 
annotate action getters/setters.




Regards,
Christoph

This Email was scanned by Sophos Anti Virus


Reply via email to