Recognizing Cancel Button over Submit Button

2002-09-10 Thread Cohan, Sean
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

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

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

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

recognizing a button

2001-08-09 Thread Bernhard J. Hirschmann
Hello! How can I recognize in the ActionServlet, which button was pressed? I have this two buttons: html:submit value=Load property=load/ html:submit value=Submit property=submit/ How can I get the value of the attribute property inside of the Action.perform method? I just can't figure out,

Re: recognizing a button

2001-08-09 Thread William Jaynes
String loadButton = (String)request.getParameter(load); String submitButton = (String)request.getParameter(submit); - Original Message - From: Bernhard J. Hirschmann [EMAIL PROTECTED] To: Struts-User [EMAIL PROTECTED] Sent: Thursday, August 09, 2001 6:26 AM Subject: recognizing a button

AW: recognizing a button

2001-08-09 Thread Stefan Faist
Hallo Bernhard, with String property = request.getParameter(load) you save Load in the String property Stefan -Ursprüngliche Nachricht- Von: Bernhard J. Hirschmann [mailto:[EMAIL PROTECTED]] Gesendet: Donnerstag, 9. August 2001 12:26 An: Struts-User Betreff: recognizing a button

Re: recognizing a button

2001-08-09 Thread Terence Jacyno
); - Original Message - From: Bernhard J. Hirschmann [EMAIL PROTECTED] To: Struts-User [EMAIL PROTECTED] Sent: Thursday, August 09, 2001 6:26 AM Subject: recognizing a button Hello! How can I recognize in the ActionServlet, which button was pressed? I have this two buttons

AW: recognizing a button

2001-08-09 Thread Bernhard J. Hirschmann
-Ursprungliche Nachricht- Von: Terence Jacyno [mailto:[EMAIL PROTECTED]] Gesendet: Donnerstag, 9. August 2001 13:11 An: [EMAIL PROTECTED] Betreff: Re: recognizing a button Hi. If you want to figure out which button was pressed directly within your ActionForm, try this. Within

Re: AW: recognizing a button

2001-08-09 Thread Terence Jacyno
. August 2001 13:11 An: [EMAIL PROTECTED] Betreff: Re: recognizing a button Hi. If you want to figure out which button was pressed directly within your ActionForm, try this. Within the ActionForm that you associated with your HTML form, place the following: public void