struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From michael.korol...@ps.ge.com
Subject RE: Date validation dd-MMM-yyyy not working with Javascript
Date Tue, 18 Feb 2003 17:06:47 GMT
it doesn't work for me neither
so - far I'v not found a answer.

looks like server side only the way.

Best Regards.
Michael.


-----Original Message-----
From: Amit Keshav Kulkarni [mailto:Amit_Kulkarni01@infosys.com]
Sent: Tuesday, February 18, 2003 2:02 AM
To: struts-user@jakarta.apache.org
Subject: Date validation dd-MMM-yyyy not working with Javascript


Hi All,

I am using the Date validation function from Validator package.
I tried to chane the Date Pattern to dd-MMM-yyyy with datePatternStrict.
It does the validation properly if I use server side validation.
But if I use JavaScript version of the same, then even for correct values of
date it pops up error 
message and does not proceed further.
All other validations work fine.
Date validation works both on server and client side with the format
MM-dd-yyyy.

Following is an extract from my validation.xml:

        <field    property="date"
         	   depends="required,date">
         	     <arg0 key="typeForm.date.displayname"/>
                     <var>
                       <var-name>datePatternStrict</var-name>
                       <var-value>dd-MMM-yyyy</var-value>
                     </var>
         </field>


Am I doing some very basic thing wrong?


Thanks and Regards,
Amit


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

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