This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Struts and the fly likes error in validation Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "error in validation" Watch "error in validation" New topic
Author

error in validation

Babu Singh
Ranch Hand

Joined: Aug 17, 2009
Posts: 72

i am making a simple program of validation.
at run time, suppose i fill 4 charactor in password then click to submit button it should be display Password should be more than 6 character. but it show me requiredstring. same when i left the text area for user name then click to submit button. it should be display User Name is required but it display requiredstring.
and suppose i left the one field and then click to submit, suppose filled values display in left side of corresponding text area. and for empty text area it show me requiredstring.

Here some files:

RegisterAction-validation.xml


ApplicationRsource.properties

please suggest.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: error in validation
 
Similar Threads
Struts 2 error
xml form validation UI error message not shown?
Struts2 & validation [SOLVED]
short-circuit attribute not working in validation file
Understanding public void prepare() +tiles