struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Cohan, Sean" <SCo...@goSPS.com>
Subject RE: Recognizing Cancel Button over Submit Button
Date Tue, 10 Sep 2002 17:03:17 GMT
Thanks, but what if I want to use html:image and don't want the bean:message
tag to display text on the page?

I should have mentioned that in the first email.  What I really is two image
buttons within the same form.  Can I have them go to the same action class
where I can know which button was pressed and perform different actions
accordingly?  




-----Original Message-----
From: Ashish Kulkarni [mailto:kulkarni_ash1312@yahoo.com]
Sent: Tuesday, September 10, 2002 11:33 AM
To: Struts Users Mailing List
Subject: Re: Recognizing Cancel Button over Submit Button


u can use LookupDispatchAction to find out which
button has been clicked
see struts1.1-b2 documentation where they haev an
example 
--- "Cohan, Sean" <SCohan@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:  
> <mailto:struts-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail:
> <mailto:struts-user-help@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:
<mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail:
<mailto:struts-user-help@jakarta.apache.org>

--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>


Mime
View raw message