Set the button names to all be "command" and set the value to the name of a command in your CommandDriven Action and have methods named doSave,doCancel, etc.
> -----Original Message----- > From: Steve Conover [mailto:[EMAIL PROTECTED] > Sent: Monday, March 10, 2003 5:05 PM > To: Webwork > Subject: [OS-webwork] "best practices" around forms with > multiple submit buttons > > > What's the recommended way of handling a situation where you > have multiple form buttons? i.e. "Save" and "Cancel". There > are probably many ways to approach this and I'd like to hear > how people on this list handle it. > > One way might be to use javascript to change a hidden flag > field, and submit to an action that redirects to the right place. > > Another might be to use javascript to actually change the > action...I haven't tried that but my first impression is that > might be the cleanest way. > > Any ideas/advice? > > Thanks, > Steve > > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Opensymphony-webwork mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork > ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork