This is not implemented right now in WW2. I really wanted to get away from the "!" syntax. I've talked with Patrick about implementing a CommandDrivenInterceptor for this (and backward compatibility with WW1 CommandDriven stuff), but we haven't done it yet. He's investigating some other stuff around using interceptors to allow executing methods other than execute the way XW does now in the core, so I wasn't sure if he'd roll that in, or what. I could implement the CommandDrivenInterceptor in pretty short order, if we decide that's the way to go.
Jason > -----Original Message----- > From: Ben Hall [mailto:[EMAIL PROTECTED] > Sent: Wednesday, August 13, 2003 11:33 AM > To: '[EMAIL PROTECTED]' > Subject: [OS-webwork] Forms with multiple submit buttons > > > I had a read through the archives and saw that a question > about multiple submit buttons was posted almost a month ago. > Was it ever resolved how to do this ? > > I think it was possible in Webwork 1: > http://wiki.opensymphony.com/space/Using+CommandDriven+Actions > > I found this on Webwork 2 but it doesn't look as clean as > Webwork 1: > http://wiki.opensymphony.com/space/Webwork+2+HTML+form+buttons+Howto > > I figured i'd do something like this in my html: > > <form action="SomeAction.action" method="post"> > <input type="submit" value="submit"> > <input type="submit" value="clear" name="clear"> > </form> > > And within my xwork.xml: > > <action name="SomeAction" class="SomeAction"> > <result name="success" type="velocity"> > <param name="location">action1.vm</param> > </result> > <interceptor-ref name="defaultStack"/> > </action> > > <action name="SomeAction!clear" class="SomeAction" method="clear"> > <result name="success" type="velocity"> > <param name="location">action2.vm</param> > </result> > <interceptor-ref name="defaultStack"/> > </action> > > This doesn't work though. Can anyone tell me what the syntax > is for this within Webwork 2, or if it is supported in Webwork 2 ? > > Thanks, > Ben. > > > > > > This email and any attachments are strictly confidential and > are intended solely for the addressee. If you are not the > intended recipient you must not disclose, forward, copy or > take any action in reliance on this message or its > attachments. If you have received this email in error please > notify the sender as soon as possible and delete it from your > computer systems. Any views or opinions presented are solely > those of the author and do not necessarily reflect those of > HPD Software Limited or its affiliates. > > At present the integrity of email across the internet cannot > be guaranteed and messages sent via this medium are > potentially at risk. All liability is excluded to the extent > permitted by law for any claims arising as a re- sult of the > use of this medium to transmit information by or to > HPD Software Limited or its affiliates. > > > > > ------------------------------------------------------- > This SF.Net email sponsored by: Free pre-built ASP.NET sites > including Data Reports, E-commerce, Portals, and Forums are > available now. Download today and enter to win an XBOX or > Visual Studio .NET. > http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet _072303_01/01 _______________________________________________ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork ------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01 _______________________________________________ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork