struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eirik Kj°lsrud" <wayb...@frisurf.no>
Subject Struts validator, validating dates with pattern.
Date Wed, 18 Jun 2003 10:40:26 GMT
Hi.

I'm using Struts 1.1 RC1 and wants to validate a date in an input field as
required and date. The part in validation.xml describing the validation is :

<field property="orderstart" depends="required,date">
    <arg0 key="gameparamForm.orderstart.displayname"/>
    <var>
        <var-name>datePattern</var-name>
        <val-value>dd.MM.yyyy</val-value>
    </var>
 </field>

The required field triggers, but regardless of value in the date field, the
date validation does not trigger an error message. In the application
resources file, the errors.date field is populated.

Any help is greatly appreciated !

Best Regards
Eirik Kj°lsrud, Norway




---------------------------------------------------------------------
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