| Author |
MM/YY date format within validator.xml
|
Celinio Fernandes
Ranch Hand
Joined: Jun 28, 2003
Posts: 546
|
|
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
|
SCJP 1.4, SCWCD 1.4, SCBCD 1.3, SCBCD 5
Visit my blog
|
 |
 |
|
|
subject: MM/YY date format within validator.xml
|
|
|