Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

mask validation not working

 
Pranav Sharma
Ranch Hand
Posts: 258
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My validator.xml contains simple validations for required and mask.

The 'required' works but when I take it off and leave only mask this does not get validated.

Can anyone see why.




my error in the resources file is :
errors.invalid={0} is invalid.
 
Pranav Sharma
Ranch Hand
Posts: 258
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I read on the struts website that the validator needs a ^ and $ struts 1.1 onwards, however this does not work either

<var-value>^[a-zA-Z]*$</var-value>
 
BadalDeepali Garg
Greenhorn
Posts: 4
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi think if u try this
<var>
<var-name>mask</var-name>
<var-value>[a-zA-Z]+</var-value>
</var>
It may wrok for you
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic