Hi,

U can use javascript to do this.

<input type="button" name="button1" value="button1"
onClick="javascript:this.form.submit()">
<input type="button" name="button2" value="button2"
onClick="javascript:this.form.submit()">

Hope this helps,
B. Suresh


-----Original Message-----
From: Howard Lee [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 24, 2000 2:37 PM
To: [EMAIL PROTECTED]
Subject: how to have two submit buttons calling different JSP's


Hi,

I know this is more of an HTML question than JSP's but since many people on
here are web gurus, I thought I asked here. How would you have two submit
buttons to have two different URLs? I have two <input type="submit">
buttons, and each calling different JSP's. Because I can only have one
action in <form>, I couldn't see how I can do that. How would I have two
submit buttons to have two different URL's? Thank you very much!

howard

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