Greetings, I'm using Struts 1.2.7 and trying to validate a date field
using the datePatternStrict with a date format of MM/dd/yyyy. Everything
seems to work as expected until I enter a date like 04/04/200w. It seems
that the date validation routine thinks that this is a valid date...or
atleast it allows validation of the date field to pass. The docs say
that date validation leverages SimpleDateFormat so I looked at the
javadocs, but found nothing to indicate that parsing "04/04/200w" should
pass (although I haven't tested it explicitely with just SimpleDateFormat).
I'm using the following snippet in my validation.xml file:
<var><var-name>datePatternStrict</var-name><var-value>MM/dd/yyyy</var-value></var>
BTW, the javascript for date validation seems to catch this, but the
server side validation does not.
I must be doing something wrong or this must be a known issue.
Any ideas?
/robert
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]