You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Cohan, Sean" <SC...@goSPS.com> on 2002/09/10 17:18:33 UTC

Recognizing Cancel Button over Submit Button

I am sure this a newbie question, but how can I determine that the cancel
button (html:cancel) was clicked instead of the submit button (html:submit)
using an html:form.  They both end up in the same method of my
DispatchAction?  Thanks.

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Recognizing Cancel Button over Submit Button

Posted by Ashish Kulkarni <ku...@yahoo.com>.
u can use LookupDispatchAction to find out which
button has been clicked
see struts1.1-b2 documentation where they haev an
example 
--- "Cohan, Sean" <SC...@goSPS.com> wrote:
> I am sure this a newbie question, but how can I
> determine that the cancel
> button (html:cancel) was clicked instead of the
> submit button (html:submit)
> using an html:form.  They both end up in the same
> method of my
> DispatchAction?  Thanks.
> 
> --
> To unsubscribe, e-mail:  
> <ma...@jakarta.apache.org>
> For additional commands, e-mail:
> <ma...@jakarta.apache.org>
> 


=====
A$HI$H

__________________________________________________
Yahoo! - We Remember
9-11: A tribute to the more than 3,000 lives lost
http://dir.remember.yahoo.com/tribute

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>