Reply to comment

Invalid field value for field [fieldName] in Struts 2

Tagged:  

The default field error message in struts 2 is Invalid field value for field "[fieldName]". This can be change by creating a property file with a file name pattern [ClassName].properties under the package of the Action class. Then add the example line below (Example for a birthDate field):

    invalid.fieldvalue.birthDate = Birthdate is invalid

You can add another field error message in the file. Just code it line by line. Below is the project file heirarchy.

Reply

The content of this field is kept private and will not be shown publicly.
CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.