File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes multiple submit buttons 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 » Frameworks » Struts
Bookmark "multiple submit buttons" Watch "multiple submit buttons" New topic
Author

multiple submit buttons

Pranav Sharma
Ranch Hand

Joined: Oct 27, 2003
Posts: 256
I have multiple submit buttons for the same form, but each is a little different in behavior.

Question:
How would I know in the action which button was clicked.
Jason Menard
Sheriff

Joined: Nov 09, 2000
Posts: 6450
This is a common question that is often raised. You should be able to find several good answers by searching this forum.
Pranav Sharma
Ranch Hand

Joined: Oct 27, 2003
Posts: 256
sorry Jason. should have checked the forum first. a little lazy.
Jason Menard
Sheriff

Joined: Nov 09, 2000
Posts: 6450
No problem. It's easy to not notice the little "Search" link at the top so I like to point it out every now and then.
Pranav Sharma
Ranch Hand

Joined: Oct 27, 2003
Posts: 256
One of the first things i read as a greenhorn was "How to Ask Questions the Smart Way"

You should really put it up somewhere more visible, quite a sensible set of guidelines.
 
 
subject: multiple submit buttons
 
Similar Threads
Assigning Key Values to Multiple Submit Buttons
can multiple submit buttons work in STRUTS?
java coding problem ~ system.out.println
Determining which button was clicked?
servlet & jsp problem/enters doPost twice??