aspose 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
Register / Login


Win a copy of Mongo DB Applied Patterns this week in the MongoDB forum
or a resume review from Five Year Itch in the Jobs Discussion forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply 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: 56150
    
  13

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


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
Gregg Bolinger
Ranch Hand

Joined: Jul 11, 2001
Posts: 15229

Only the submit button you clicked will be sent to the server.
William Brogden
Author and all-around good cowpoke
Rancher

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

Bill


Java Resources at www.wbrogden.com
 
I agree. Here's the link: http://zeroturnaround.com/jrebel/download
 
subject: Which submit is pressed
 
Similar Threads
How to know which submit button is pressed in JSP for BaseLookupDispatchAction
I don't doGet() it!
JSP Help-simple question
how to make one jspform have two functions,,as follows
How can a validator know which commandButton was clicked?