File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes Getting Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Getting "Password can not be less than 6 characters" error message even i enter more than 6 chars" Watch "Getting "Password can not be less than 6 characters" error message even i enter more than 6 chars" New topic
Author

Getting "Password can not be less than 6 characters" error message even i enter more than 6 chars

Prakash Mani - Attur
Ranch Hand

Joined: Oct 08, 2009
Posts: 100
I am using validator framework. in that i am validating the password field as required and minimum length of 6 characters. When i enter without any values its showing correct error message as "Password is required". But when i enter more than 6 characters i am still getting "Password can not be less than 6 characters".I cannot submit the form as this error message occurs for any length of characters i enter.What may be the problem? Please help.

i have below lines in the validation.xml file:

I have the following in the validation-rules.xml file:

Please help.Thanks in advance.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Getting "Password can not be less than 6 characters" error message even i enter more than 6 chars
 
Similar Threads
Struts ActionForm: ClassCastException caused by FormTag.initFormBean
ValidWhen problem in struts 1.3.10
Unable to validate minlength
Struts validation with minlength
Problem in minlength Validation