OK, but document.formname.action=str; don't work in ver. 3.x browsers. RoBo Zilka ____________ /EuroWeb a.s. /www.euroweb.sk /mailto:[EMAIL PROTECTED] -----Original Message----- From: Kevin Duffey [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 04, 2000 7:56 PM To: [EMAIL PROTECTED] Subject: Re: How to create two submit buttons ina form which are having two different action pages You can do it in two ways I believe. I would do something like: <input type="submit" onclick="doSubmit('action1')" value="Do this"> <input type="submit" onclick="doSubmit('action2')" value="Do that"> function doSubmit(str) { document.form.action.value = str; document.form.submit(); } Don't recall if its action.value = str or just action = str; Give it a try. > -----Original Message----- > From: A mailing list about Java Server Pages specification and reference > [mailto:[EMAIL PROTECTED]]On Behalf Of PITCHUKA SRINIVASA RAO > Sent: Thursday, May 04, 2000 6:42 AM > To: [EMAIL PROTECTED] > Subject: How to create two submit buttons ina form which are having two > different action pages > > > Hi all, > Can any one inform me how to create a form with two submit buttons having > action to two different pages. > Thanks in advance, > Sreenivas > > ================================================================== > ========= > 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 =========================================================================== 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
