Bookmark Topic Watch Topic
  • New Topic

How to distinguish between two different button clicks on servlet

 
Bhardwaj Shweta
Ranch Hand
Posts: 36
Eclipse IDE Java jQuery
  • Mark post as helpful
  • send pies
  • Report post to moderator
I have three Buttons
1.Add(type="button") and on click of this button control remains on the same jsp page.
2.Edit(type="button") and on click of this button control remains on the same jsp page.
3.Save(type="submit") and control goes to servlet.

So my query is after clicking save how would i check in servlet wether before save,button add or edit was clicked....??
 
Matthew Brown
Bartender
Posts: 4568
9
  • Mark post as helpful
  • send pies
  • Report post to moderator
Duplicate of http://www.coderanch.com/t/533956, so I'm going to lock this one. Can you avoid posting duplicates, please? We can always move a thread if it's in the wrong forum.

Thanks.
 
    Bookmark Topic Watch Topic
  • New Topic