wood burning stoves 2.0*
The moose likes Struts and the fly likes Using masks in Validations 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 "Using masks in Validations" Watch "Using masks in Validations" New topic
Author

Using masks in Validations

ajse ruku
Ranch Hand

Joined: May 06, 2005
Posts: 193
Hi all,
In my application ,there is password field in which I want to allow user input only alphanmeric value.Following is my Validation.xml file.Here required and minlength are working fine but mask is not working.Can anybody help me? I will be thankful.

with regards, Ajit

<field property="password" depends="required,mask,minlength"> <arg0 key="LoginForm.password"/> <arg1 key="${var:minlength}" name="minlength" resource="false"/> <var> <var-name>mask</var-name> <var-value>^[0-9a-zA-Z]*$</var-value> </var> <var> <var-name>minlength</var-name> <var-value>4</var-value> </var> </field>
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Using masks in Validations
 
Similar Threads
Struts validator Framework
problem in using mask validation
mask is not working
Validator for NOT NULL/ blanks
mask is not showing pop-up window