struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eirik Kjølsrud <wayb...@frisurf.no>
Subject Re: Struts validator, validating dates with pattern.
Date Wed, 18 Jun 2003 11:48:13 GMT
Hi Nagendra, and thanks for your suggestion !

That "kinda" worked... 
Using <var>
                 <var-name>datePatternStrict</var-name>
                <var-value>dd.MM.yyyy</var-value>
          </var>

resulted in the datefield being correctly validated to the dd.MM.yyyy format, but I would
also like it to allow both these formats of date : 
08.11.1976 and 8.11.1976. I believe that the use of datePatternStrict force the use of leading
zeros ?

How come when I use only datePattern instead of datePatternStrict, nothing is validated ?

Best Regards
Eirik Kjølsrud

      -------------- original message -------------
      > hi,
      >  use this syntax
      >            <var>
      >              <var-name>datePatternStrict</var-name>
      >              <var-value>dd/MM/yyyy</var-value>
      >          </var>

     

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message