File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Struts2 type conversion error message
Joined: Jan 09, 2005
Jan 18, 2008 15:42:00
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?
I agree. Here's the link:
subject: Struts2 type conversion error message
Struts2 & validation [SOLVED]
Struts2 Data Transfer
Display Image using struts2
migration to Struts2
Struts2 Validations problem
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015