struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Phil Shrimpton <p...@shrimpton.co.uk>
Subject Re: Validator : date
Date Thu, 17 Jul 2003 14:04:59 GMT
On Thursday 17 July 2003 13:15, Michael Nascimento Santos wrote:

Hi,

> You must define a datePattern var in your validation.xml config, such as:
>
> <field property="aDate" depends="date">
>     <var>
>       <var-name>datePattern</var-name>
>       <var-value>MM-dd-yyyy</var-value>
>     </var>
> </field>

Same error, but if I change it to...

var-name>datePatternStrict</var-name>

..it works.  Also, according to the docs I have, you don't need to supply the 
datePattern, as it will default to the locales short date format

Phil

-- 
  2:02pm  up 92 days,  2:55,  1 user,  load average: 0.02, 0.04, 0.01
           ICQ: 760757       AIM: pjshrimpton       Y!: pjshrimpton

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Mime
View raw message