Hi guys, My page has 4 buttons in one form. One is the submit button, another one is a cancel button, and the other two are buttons that does another action if chosen. (For example, delete and edit). I use <html:img> or <html:image> tags for the buttons. I was wondering how I could get my action to determine which button was clicked and have the forward subsequently use the right target to forward to. Any help would be great. Thanks! Thanks!
Joined: Sep 23, 2003
You can then put conditional logic in your action to determine the proper forward. A disclaimer: This assumes that all the buttons are calling one action, the action declared in the form tag. HTH E
My theory of evolution is that Darwin was adopted. - Steven Wright
I use DispatchAction along with the "method" hidden field to determine which method is called. I can place any number of buttons, images, buttons, etc. So in the onclick of the button, use this: Then, as an example of a DispatchAction class is as follows: