I have 3 buttons in my JSP.The servlet should capture the request and depending upon which button is pressed it should call a different jsp. How can it be done?
Bear Bibeault
Author and opinionated walrus
Marshal
Which button does what and how is entirely a matter of how you format the HTML and Javascript on the page. As such, this has been moved to the HTML/Javascript forum.
you set the action attribute with the onclick with a regular button, not a submit button. onclick="document.formName.action="yourJsp.jsp;document.formName.submit()";