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 identifying multiple actions from a one form Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "identifying multiple actions from a one form" Watch "identifying multiple actions from a one form" New topic
Author

identifying multiple actions from a one form

manoj samarasinghe
Greenhorn

Joined: Nov 17, 2004
Posts: 16
hi...
IN MY STRUTS PROJECT................

i used struts html forms with multiple buttons each should trigger different methods..but same action.

how do i seperately identify which button was clicked and excute appropriate method.

it is better to have a way to identify them using java script.
passing parameter or something like that.


manojmanoj
Nathan Pruett
Bartender

Joined: Oct 18, 2000
Posts: 4121

Moving to the Web Application Frameworks forum, since question is about Struts.


-Nate
Write once, run anywhere, because there's nowhere to hide! - /. A.C.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: identifying multiple actions from a one form