Java Mailing List Archive

http://www.gg3721.com/

Home » Struts Users Mailing List »

Date validation allows 09/22/2dff

ps_kishore

2008-09-22


Author LoginPost Reply

Hi,

  i have a date validation allows year if it starts with number. If i try
to put the year as "dff2: or no number like "ddff" it throws validation
error. But when I enter "2dff" it doesnt throw any validation error.

Here is the validation block

<field property="datefield" depends="date">
     <arg0 key="datefieldText"/>
     <var>
       <var-name>datePattern</var-name>
       <var-value>MM/dd/yyyy</var-value>
     </var>
   </field>

Any help is much appreciated.

Thanks
Kishore
--
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)

©2008 gg3721.com - Jax Systems, LLC, U.S.A.