aspose file tools*
The moose likes JDBC and the fly likes How to distinguish between two different button clicks on servlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Databases » JDBC
Reply locked New topic
Author

How to distinguish between two different button clicks on servlet

Bhardwaj Shweta
Ranch Hand

Joined: Mar 29, 2011
Posts: 36

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....??

Regards,
Shweta Bhardwaj
Matthew Brown
Bartender

Joined: Apr 06, 2010
Posts: 4240
    
    7

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to distinguish between two different button clicks on servlet
 
Similar Threads
Form Tokens
My jsp page does not get refreshed
How to distinguish between two different button clicks on servlet
Record Locking in multi-user
sqlerror(urgent)