You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Sandip Mante <ms...@pentacomputing.com> on 2004/06/05 06:33:09 UTC

Problem in Client Side Validation in Struts

Dear Sir,

I have a problem in Client Side Validation in Struts 1.1.Actually see

what is happening and what i have done:

I have written all validdation and validation rules invalidator.xml and

valation-rule.xml.

I have given path (through plug-in tag) in struts-config file. \

I have called it in JSP's by using return validateFormName onsubmit of

the Form.

Its working properly when I left the any required (of which validation

ihave given in Validator.xml file)field blank.

But it is not working when I'm doing validation of Maxlength and minlength

of fields? It is not generating any error but doesn't working also. WHy i'm

getting such a problem.

Hope you will undersatnd it and will reply me.

Thanks and Reagrds,

Sandip Mante

                       "The Journy has been started and the sky is limit
!!!" "Failure always made me try harder next time!!!"

                        Sandip K. Mante
                        Software Engineer  Penta Computing Pvt. Ltd
                        Shivaji Nagar,
                        Pune-411004
                        msandip@pentacomputing.com  mobile:  +919822859361




            Signature powered by Plaxo Want a signature like this?

      Add me to your address book...



RE: Problem in Client Side Validation in Struts

Posted by David Friedman <hu...@ix.netcom.com>.
The form should have an onSubmit setting to
invoke that javascript function.  Have you
assured that the web page you see in the
browser:

a) has the onsubmit listing your validation form function
b) has the require() javascript function
c) has the form named javascript function
d) isn't showing any javascript error messages.

Regards,
David

-----Original Message-----
From: Sandip Mante [mailto:msandip@pentacomputing.com]
Sent: Saturday, June 05, 2004 12:33 AM
To: user@struts.apache.org
Subject: Problem in Client Side Validation in Struts


Dear Sir,
I have a problem in Client Side Validation in Struts 1.1.Actually see
what is happening and what i have done:
I have written all validdation and validation rules invalidator.xml and
valation-rule.xml.
I have given path (through plug-in tag) in struts-config file. \
I have called it in JSP's by using return validateFormName onsubmit of
the Form.
Its working properly when I left the any required (of which validation
ihave given in Validator.xml file)field blank.
But it is not working when I'm doing validation of Maxlength and minlength
of fields? It is not generating any error but doesn't working also. WHy i'm
getting such a problem.
Hope you will undersatnd it and will reply me.
Thanks and Reagrds,
Sandip Mante
"The Journy has been started and the sky is limit !!!" "Failure always made
me try harder next time!!!"

Sandip K. Mante
Software Engineer Penta Computing Pvt. Ltd
Shivaji Nagar,
Pune-411004
msandip@pentacomputing.com mobile: +919822859361




Signature powered by PlaxoWant a signature like this?

Add me to your address book...


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