In onSubmit event call a function. Based on your requirement , the function
will set the value of the action and submit the form.
See hint:

<script language="JavaScript">
function callMe()
{
  if (cond1)
        document.test.action = "Servlet1";
 else
        document.test.action = "Servlet2";
  document.test.submit();
}
</script>

<form name="test" onSubmit="callMe();">

----- Original Message -----
From: Bodduls Sridhar <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, August 24, 2000 9:00 PM
Subject: Two actions for HTML form


> Hi,
>
> I have one HTML form in a jsp. I need to give two actions i.e two URLs for
> the HTML
>
> Can any body tell me how can i do that
>
> thanks in advance
>
> Sridhar Boddula
>
>
===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to