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
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
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
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
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,
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
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
);
- 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
-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
. 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
10 matches
Mail list logo