Hey Rudiger,

Please excuse my lack of knowledge about Struts! I've only started learning it recently. 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?


THanks,

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: Wed, 5 May 2004 17:47:52 +0200
MIME-Version: 1.0
Received: from mail.apache.org ([208.185.179.12]) by mc1-f21.hotmail.com with Microsoft SMTPSVC(5.0.2195.6824); Wed, 5 May 2004 08:52:29 -0700
Received: (qmail 19842 invoked by uid 500); 5 May 2004 15:52:06 -0000
Received: (qmail 19819 invoked from network); 5 May 2004 15:52:05 -0000
Received: from unknown (HELO mail.skygate.de) (62.206.117.2) by daedalus.apache.org with SMTP; 5 May 2004 15:52:05 -0000
Received: by mail.skygate.de from localhost (router,SLMail V4.3); Wed, 05 May 2004 17:52:06 +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 A8AF3AAC339640E98637C5470F22FDBF for <[EMAIL PROTECTED]>; Wed, 05 May 2004 17:52:02 0200
X-Message-Info: JGTYoYF78jGHRstByB2/MsKWskdHsFL5
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: 25E1E0D5-362742F9-9799DCB5-EF84FDFA
X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N
Return-Path: [EMAIL PROTECTED]
X-OriginalArrivalTime: 05 May 2004 15:52:31.0768 (UTC) FILETIME=[F9B07980:01C432B8]


Hello Brian Boyle,

on 05.05.2004 at 17:39 you wrote:

> On my last page I have two buttons. One that will let me continue
> with the applicaiton and the other is the button that will bring me back to
> the original page. Will I need to have two forms and an differnent Action
> class for each form? Because for each button there is differnt htings
> happening. CAnI use the same form and Action class for this or will I need a
> differnet one for each button?


You can give both buttons the same name-attribute, but different
values. Then you can evaluate that value (which is the one of the
clicked button), and continue accordingly.

I'd recommend you put that property into your form-bean as well.

--
Greetings from Berlin,
Rüdiger Schulz

SkyGate inter|net|working GmbH


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


_________________________________________________________________
Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail



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



Reply via email to