> > 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