RE: Recognizing Cancel Button over Submit Button

2002-09-10 Thread Cohan, Sean

Thanks, Eddie.  It looks exactly what I'm looking for.  

-Original Message-
From: Eddie Bush [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 10, 2002 1:43 PM
To: Struts Users Mailing List
Subject: Re: Recognizing Cancel Button over Submit Button


http://www.husted.com/struts/tips

There was a recent commit to make ImageButtonBean a piece of struts.  I 
*think* it will live in o.a.s.util.ImageButtonBean (browse the JAR to 
find it).  I *think* if you look at Ted's tip #1, you'll find what 
you're looking for.  Maybe I misunderstand your requirements though.

Regards,

Eddie

Cohan, Sean wrote:

>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?  
>



--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




Re: Recognizing Cancel Button over Submit Button

2002-09-10 Thread Eddie Bush

http://www.husted.com/struts/tips

There was a recent commit to make ImageButtonBean a piece of struts.  I 
*think* it will live in o.a.s.util.ImageButtonBean (browse the JAR to 
find it).  I *think* if you look at Ted's tip #1, you'll find what 
you're looking for.  Maybe I misunderstand your requirements though.

Regards,

Eddie

Cohan, Sean wrote:

>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?  
>



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Recognizing Cancel Button over Submit Button

2002-09-10 Thread Cohan, Sean

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:[EMAIL PROTECTED]]
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" <[EMAIL PROTECTED]> 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:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
> 


=
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:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




Re: Recognizing Cancel Button over Submit Button

2002-09-10 Thread Ashish Kulkarni

u can use LookupDispatchAction to find out which
button has been clicked
see struts1.1-b2 documentation where they haev an
example 
--- "Cohan, Sean" <[EMAIL PROTECTED]> 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:  
> 
> For additional commands, e-mail:
> 
> 


=
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:   
For additional commands, e-mail: