Hi everyone,
Thanks for your responses. I should of posted this code earlier i thought there might have been an option or a way to somehow specify the javascript must be checked first then call the controller within the FORM definition. If the action=controller is taken out the javascript...
Hi everyone,
I'm using a validation javascript that is called onsubmit="return validate()".
This javascript is used to validate a login form. However now I have a servlet that runs off the same FORM - to check if the user exists etc.
<form name="login_form" method="post" action="Controller"...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.