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

MM/YY date format within validator.xml

 
Celinio Fernandes
Ranch Hand
Posts: 549
Eclipse IDE Google Web Toolkit Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,

inside validator.xml,
is it possible to use the MM/YY format with the date validator ?

The documentation gives examples with MM/dd/yyyy
http://struts.apache.org/userGuide/dev_validator.html

but not with MM/YY.
I tried this:
<field property="ExpirationDate" depends="required, date">
<arg0 key="ExpirationDate.label.date" />
<var><var-name>datePatternStrict</var-name><var-value>MM/yy</var-value></var>
</field>

Validation is not working.
Any idea please ?
Thanks
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic