Register / Login
Win a copy of
Re-engineering Legacy Software
this week in the
Docker in Action
Struts2 type conversion error message
posted 8 years ago
in Struts2 data types are automatically converted during form submission.
FOr example, in the form I can have a textfield (
) that is mapped to the attribute Age of a person object (integer).
If I input a character STruts2 will detect that this is not a number and return "INPUT". The problem is, I can not display the error message associated with this?
What I want is to be able to display "field <xxx> data type is wrong". It needs to be generic as well, I don't want to define the error message for all the fields I have in my system?
Struts2 & validation [SOLVED]
Struts2 Data Transfer
Display Image using struts2
migration to Struts2
Struts2 Validations problem