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 MM/YY date format within validator.xml 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 "MM/YY date format within validator.xml" Watch "MM/YY date format within validator.xml" New topic

MM/YY date format within validator.xml

Celinio Fernandes
Ranch Hand

Joined: Jun 28, 2003
Posts: 547


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

The documentation gives examples with MM/dd/yyyy

but not with MM/YY.
I tried this:
<field property="ExpirationDate" depends="required, date">
<arg0 key="" />

Validation is not working.
Any idea please ?

SCJP 1.4, SCWCD 1.4, SCBCD 1.3, SCBCD 5
Visit my blog
It is sorta covered in the JavaRanch Style Guide.
subject: MM/YY date format within validator.xml
Similar Threads
how to validate multiple text boxes of same name
Skip validation of a field
how to validate date type parameter with validator
Stuts Validation
Problems wih validateUrl method