Satish, Are you just using garden variety client side JavaScript for validation, calling a method in the onSubmit of your <form> tag? If so..
return false; in your JS method will prevent the form from being submitted. An alternative you might consider is to check out the Struts Validator http://home.earthlink.net/~dwinterfeldt/ (or even just using the Form Bean's validate() method for validation) so you're leveraging the power of Struts. Hope it helps John Mattos Sr. Developer and Architect iNDEMAND 345 Hudson St. 16th Floor New York, New York 10014 -----Original Message----- From: Satish Jeejula [mailto:[EMAIL PROTECTED]] Sent: Friday, February 08, 2002 10:39 AM To: '[EMAIL PROTECTED]' Subject: Using JavaScript in the JSP Pages Hello All, I am using JavaScript to validate credit card number field in the JSP page. Using </html:form> tag for the form in JSP page. The form is getting submitted even though the credit card is not validated. How I can prevent this from happening. Thanks, Satish -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

