wood burning stoves 2.0*
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 OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA 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: 258
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: 258
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: 258
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.
 
Don't get me started about those stupid light bulbs.
 
subject: multiple submit buttons