Rüdiger,

Thanks for your help. That works perfectly!
Brian


From: "Rüdiger Schulz" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Subject: Re: Clearing Input fields
Date: Thu, 6 May 2004 13:38:30 +0200
MIME-Version: 1.0
Received: from mail.apache.org ([208.185.179.12]) by mc4-f14.hotmail.com with Microsoft SMTPSVC(5.0.2195.6824); Thu, 6 May 2004 08:34:39 -0700
Received: (qmail 18416 invoked by uid 500); 6 May 2004 15:22:23 -0000
Received: (qmail 18316 invoked from network); 6 May 2004 15:22:22 -0000
Received: from unknown (HELO mail.skygate.de) (62.206.117.2) by daedalus.apache.org with SMTP; 6 May 2004 15:22:22 -0000
Received: by mail.skygate.de from localhost (router,SLMail V4.3); Thu, 06 May 2004 13:42:41 +0200 for <[EMAIL PROTECTED]>
Received: from [192.168.3.6] [192.168.3.6] by mail.skygate.de [62.206.117.2] (SLmail 4.3.0.3454) with ESMTP id E355861D78794ACA886EF3197D2B7422 for <[EMAIL PROTECTED]>; Thu, 06 May 2004 13:42:38 0200
X-Message-Info: JGTYoYF78jE4tm7fvLOh4onwavnvL3kL
Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
Precedence: bulk
List-Unsubscribe: <mailto:[EMAIL PROTECTED]>
List-Subscribe: <mailto:[EMAIL PROTECTED]>
List-Help: <mailto:[EMAIL PROTECTED]>
List-Post: <mailto:[EMAIL PROTECTED]>
List-Id: "Struts Users Mailing List" <user.struts.apache.org>
Delivered-To: mailing list [EMAIL PROTECTED]
Organization: SkyGate inter|net|working GmbH
Message-ID: <[EMAIL PROTECTED]>
In-Reply-To: <[EMAIL PROTECTED]>
References: <[EMAIL PROTECTED]>
X-SLUIDL: 1159E3AB-90CB429F-AC689DE3-68A2837C
X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N
Return-Path: [EMAIL PROTECTED]
X-OriginalArrivalTime: 06 May 2004 15:34:42.0312 (UTC) FILETIME=[A6A83080:01C4337F]


Hello Brian Boyle,

on 06.05.2004 at 18:35 you wrote:
> Please excuse my lack of knowledge about Struts! I've only started learning
> it recently.


I just have completed my first Struts project as well, and lack of
knowledge is what usually brings people to mailing lists :-)

> First of all you said that I would need the two buttons with
> the same but different values. Is this what you mean <html:submit
> property="xxxxx" value="Continue"> and <html:submit property="xxxxx" value="Back">
> If this is what you mean, what would I use in the Action class to
> distinguish between the two. Is is something in the request?


yes, that's what I mean. Now, if you either put a property named xxxxx
into your ActionFormBean, or read "xxxxx" directly from the request,
you will see, that it will always be the value of the clicked submit
button.
If you were to give every submit button a different name (different
property in struts-tag), you would need to check each of them if it
has a value. But with all of them having the same name, you just need
to compare the value of a single property.

Actually, this works in all web-application evironments, not just
struts, as it is the browser which sends only one value.

--
Greetings from Berlin,
Rüdiger Schulz

SkyGate inter|net|working GmbH


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


_________________________________________________________________
MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. http://join.msn.com/?page=features/virus



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



Reply via email to