• Post Reply Bookmark Topic Watch Topic
  • New Topic

A form with manu submit buttons  RSS feed

 
jacob deiter
Ranch Hand
Posts: 587
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a form object with many submit buttons as SAVE,EDIT,UPDATE.I want to take action according to the Button clicked.How It can be done in JSP.
 
Bauke Scholtz
Ranch Hand
Posts: 2458
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
jacob deiter wrote:I have a form object with many submit buttons as SAVE,EDIT,UPDATE.I want to take action according to the Button clicked.How It can be done in JSP.
Just check the name/value pair in request parameter map.

By the way, you normally don´t process a request in a JSP, but in a Servlet. Doing it in a JSP is receipt for (future) trouble.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!