File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes HTML, CSS and JavaScript and the fly likes Which submit is pressed Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Which submit is pressed" Watch "Which submit is pressed" New topic
Author

Which submit is pressed

Mahesh Lohi
Ranch Hand

Joined: Jun 22, 2009
Posts: 150
I have a form with two submits. Can i know which submit is pressed by the uses in the java class..

Thank you in advance
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60763
    
  65

This is an HTML, not a JSP question. As such, it has been moved to the HTML forum.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15299
    
    6

Only the submit button you clicked will be sent to the server.


GenRocket - Experts at Building Test Data
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12759
    
    5
Note that a submit button can have a unique name as well as text value.

Bill
 
Don't get me started about those stupid light bulbs.
 
subject: Which submit is pressed
 
Similar Threads
How to know which submit button is pressed in JSP for BaseLookupDispatchAction
I don't doGet() it!
how to make one jspform have two functions,,as follows
JSP Help-simple question
How can a validator know which commandButton was clicked?