HttpServletRequest

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • SrikanthPrithvi
    New Member
    • May 2007
    • 5

    #1

    HttpServletRequest

    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
  • r035198x
    MVP
    • Sep 2006
    • 13225

    #2
    Originally posted by SrikanthPrithvi
    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
    Use Javascript.

    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

    Working...