Are you sure that it is validating? It doesn't sound like it should. Have you got javascript error notifications turned on in your browser? If you don't, you might be getting javascript errors that you never see.
The javascript function that is executed when you hit the submit button is specified by the attribute on the html:form tag.
I don't believe that the name of the submit button that you press can have any effect on the validation process.
On 04/09/2004 01:56 PM Prasad, Kamakshya wrote:
Hi,
ValidatorActionForm
KP
-----Original Message----- From: Adam Hardy [mailto:[EMAIL PROTECTED] Sent: Friday, April 09, 2004 8:33 PM To: Struts Users Mailing List Subject: Re: Validation.xml form name parameter
and which form class? ValidatorForm or ValidatorActionForm
On 04/09/2004 12:53 PM Prasad, Kamakshya wrote:
Hi,
I am using 1.1 version.
KP
-----Original Message----- From: Adam Hardy [mailto:[EMAIL PROTECTED] Sent: Friday, April 09, 2004 7:48 PM To: Struts Users Mailing List Subject: Re: Validation.xml form name parameter
Kamakshya Which version of Validator and which Form class are you using?
Adam
On 04/09/2004 10:08 AM Prasad, Kamakshya wrote:
HI,
Is it a bug or has been intentionally done like that?
I have a form with lots of CRUD buttons. The action path is "/maintainEmployeeDetails". I am using DispatchAction class for the same. But each of these buttons has specific javascript validations. So in the validation.xml insted of giving the name
as
< form name=" maintainEmployeeDetails">
I have given
< form name=" maintainEmployeeDetailsCreate">
and similarly for other buttons. This is not throwing any error but in the struts site documentation it's written that the name should be
same
as the path.
It's good for me as I can use these specific javascript functions for each of these buttons.
Will it be changed in coming release?
KP
-- struts 1.2 + tomcat 5.0.19 + java 1.4.2 Linux 2.4.20 Debian
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]