On Aug 23, 5:57 pm, Thomas 'PointedEars' Lahn <PointedE...@web.de>
wrote:
Kevin Audleman wrote:
Hi, is it possible to create a form that has two submit buttons, and
each one submits to a different page?
Yes, but unwise.
A better approach is to check the button that was clicked on the
server. Then forward your request using internal forwarding
mechanism.
In Java, the way to do it is to use a RequestDispatcher. This can be
done in Spring and struts by configuring an XML file.
String method = request.getParameter("method");
if( method.equals("button2") )
{
// Forward to the other controller.
}
I'm sure other languages/server side frameworks have similar
functionality
Garrett