Return-Path: Delivered-To: apmail-struts-user-archive@www.apache.org Received: (qmail 38501 invoked from network); 1 Jun 2004 16:12:15 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 1 Jun 2004 16:12:15 -0000 Received: (qmail 83963 invoked by uid 500); 1 Jun 2004 16:12:04 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 83897 invoked by uid 500); 1 Jun 2004 16:12:03 -0000 Mailing-List: contact user-help@struts.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Struts Users Mailing List" Reply-To: "Struts Users Mailing List" Delivered-To: mailing list user@struts.apache.org Received: (qmail 83875 invoked by uid 99); 1 Jun 2004 16:12:03 -0000 Received: from [12.31.22.40] (HELO m20nbn11.moog.com) (12.31.22.40) by apache.org (qpsmtpd/0.27.1) with ESMTP; Tue, 01 Jun 2004 09:12:03 -0700 Received: by exchange.moog.com with Internet Mail Service (5.5.2653.19) id ; Tue, 1 Jun 2004 11:48:49 -0400 Message-ID: <06D32FACF679954CB254C1B08058FD6402A7E63B@exchange.moog.com> From: "Kamholz, Keith (corp-staff) USX" To: 'Struts Users Mailing List' Subject: RE: More than one submit buttons Date: Tue, 1 Jun 2004 11:48:48 -0400 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="ISO-8859-1" X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N I have a similar but different problem. I'm using multiple submit buttons on a form, using the Lookup Dispatch Action. Are you using that too? Anyway, when I click on a button, it works just fine. However, when the enter button is pressed, I get an error. It probably doesn't know which method to use since I didn't actually a button. How do you (or anyone else) deal with this issue? - Keith -----Original Message----- From: Voinea, Marina [mailto:Marina.Voinea@genesys.com] Sent: Monday, May 31, 2004 11:49 AM To: Struts Users Mailing List Subject: RE: More than one submit buttons Regariding the same issue : multiple submit buttons on a form : We've implemented this succsefully, however, there is still an issue , does anybody have an idea what would be the best and simplest way to deal with it? The problem is as following : A form gets submitted not only through a submit button, but also by entering "CR" (enter, carriage return...). The thing is that, in that case, the first button on the form seems to get submitted, and I get , in my request , the parameter associated with the first button on the form, which is wrong. (The action checks for that parameter and finds that the button has been submitted, which is wrong....). I would like to stop the form from being submitted on "enter" for ex... What would be the best way to solve this issue? How do you guys usually do it (and still using STruts multiple buttons on the same form...) Thank you very mch..... Marina -----Original Message----- From: praveen kulkarni [mailto:job4pak@yahoo.co.in] Sent: Monday, May 31, 2004 1:28 AM To: user@struts.apache.org Subject: Re:More than one submit buttons Hi Kalla, To use more than one submit buttons, in struts, u can use DispatchAction which is a subclass of Action. By configuring the action in Struts-config, u can add "parameter" attribute as "submit". And no need of writing n number of Action classes for n submit buttons!!! u can write it as buttonAAction(......) instead of execute(...) func Bye PAK Yahoo! India Matrimony: Find your partner online. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@struts.apache.org For additional commands, e-mail: user-help@struts.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@struts.apache.org For additional commands, e-mail: user-help@struts.apache.org