GeeCON Prague 2014*
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


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: 61318
    
  66

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: 12792
    
    5
Note that a submit button can have a unique name as well as text value.

Bill
 
GeeCON Prague 2014
 
subject: Which submit is pressed