Where does the message ( age ) come from in trunk/struts2examples/annotations/

2013-12-27 Thread Chris
Hello,   Testing the  Age (int age ) value with space or some letters, with  https://svn.apache.org/repos/asf/struts/sandbox/trunk/struts2examples/annotations/ I don't understand where the message Invalid field value for field 'personBean.age'. come from ( and the red color too)   From

Re: Where does the message ( age ) come from in trunk/struts2examples/annotations/

2013-12-27 Thread Dave Newton
Type conversion and validation interceptors, combined with the default theme. On Dec 27, 2013 9:11 AM, Chris christal...@yahoo.fr wrote: Hello, Testing the Age (int age ) value with space or some letters, with

Re: Where does the message ( age ) come from in trunk/struts2examples/annotations/

2013-12-27 Thread Yasser Zamani
Hi, It has been done by /xwork-core/src/main/java/com/opensymphony/xwork2/conversion/impl/XWorkConverter.java inside Struts. By default, all conversion errors are reported using the generic i18n key xwork.default.invalid.fieldvalue, which you can override (the default text is Invalid field

Variable substitution at resource property file

2013-12-27 Thread Albert Kao
I like to do variable substitution at the resource property file. I had tried this: Resource property file: common.name=What is the name? page.name.01=${common.name} Jsp file: bean:message key=page.name.01 / The browser displayed the desired message properly. i.e. What is the name? is displayed