How can i make a request from a static page to two different servlets with two buttons namely "submit" and "cancel" i.e. when i press submit i should call servlet1 and cancel to call servlet2 within a single <form></form> container
HttpServletRequest
Collapse
X
-
Tags: None
-
Use Javascript.Originally posted by SrikanthPrithviHow can i make a request from a static page to two different servlets with two buttons namely "submit" and "cancel" i.e. when i press submit i should call servlet1 and cancel to call servlet2 within a single <form></form> container
On click of the cancel button, set form.action to servlet2's path and onClick of the submit button, set form.action to servlet1's path
Comment