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!
posted 16 years ago
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:
eat bricks! HA! And here's another one! And a tiny ad!
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop