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.


Recent comments
5 days 3 hours ago
2 weeks 4 days ago
3 weeks 1 hour ago
3 weeks 1 hour ago
4 weeks 2 days ago
4 weeks 5 days ago
4 weeks 5 days ago
6 weeks 1 day ago
7 weeks 3 days ago
7 weeks 3 days ago