Sorry for sending this message again but I got no answer with the first one and I'm
really getting crazy with it.
I'm getting a bit confused with the XML validation system. I have one form
(DynaValidatorForm), 3 JSPs followed by 3 actions that do nothing. My Form has 3
fields:
name, address
Hi,
As I am new to Struts v1.1 ...I want to display error messages in my jsp according to
validation ,The errors are as in my LoginForm The validatoin method code for Loginform
is as below...and I am using Applicationresources.properties file also...So what
should I need to code in my jsp..and
Hi again,
I'm getting a bit confused with the XML validation system. I have one form
(DynaValidatorForm), 3 JSPs followed by 3 actions that do nothing. My Form has 3
fields:
name, address and phone, all String
Now, I have 3 different JSPs, test1, test2 and test3.jsp, each of them followed
Message-
From: Sashi Ravipati [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 18, 2003 1:19 PM
To: [EMAIL PROTECTED]
Subject: How to ignore validation when form loads (first time)
Hi
We have JSP pages which need user input. How can I display the form initially with out
validation
ex) {return null;}
I'm also interested in feed-back on my approach.
-Original Message-
From: Sashi Ravipati [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 18, 2003 1:19 PM
To: [EMAIL PROTECTED]
Subject: How to ignore validation when form loads (first time)
Hi
We have JSP pages which need
thanks for the feedback.
-Original Message-
From: Adam Hardy [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 19, 2003 12:57 PM
To: Struts Users Mailing List
Subject: Re: How to ignore validation when form loads (first time)
I found that the approach with 2 action mappings worked fine
, 2003 12:57 PM
To: Struts Users Mailing List
Subject: Re: How to ignore validation when form loads (first time)
I found that the approach with 2 action mappings worked fine and I got
the impression when I first chose this method that it is intended to be
use this way.
I also used your method
PROTECTED]
Subject: RE: How to ignore validation when form loads (first time)
Even my code is working with 2 action mappings, but I have 15 JSP pages
so I will have to have 30 action mappings which is worrying me.
[EMAIL PROTECTED] 06/19/03 01:04PM
thanks for the feedback.
-Original
to validate right in the form class.
-Original Message-
From: Sashi Ravipati [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 19, 2003 1:24 PM
To: [EMAIL PROTECTED]
Subject: RE: How to ignore validation when form loads (first time)
Even my code is working with 2 action mappings, but I have 15 JSP
To: Struts Users Mailing List
Subject: RE: How to ignore validation when form loads (first time)
Then are you interested in checking for an action button in the validate() to
just return null()?this way you control when you want to validate right in
the form class.
-Original Message-
From
Sashi wrote:
I do not want to validate when page loads, so how can I avoid it unless I
give
validate=false in the action mapping?
Override the validate method in your Form bean, and only call
super.validate() when appropriate. How to decide that is up to you. I use
a LookupDispatchAction, so
as far as I am concerned, there is nothing wrong with having two action
mappings. It is alot easier than coding something in the form class. I
have heard of projects with many hundreds of action mappings, with no
adverse impact on the project.
Wendy Smoak wrote:
Sashi wrote:
I do not want to
Hi
We have JSP pages which need user input. How can I display the form initially with out
validation and then when user enters data and submits the page, the validation has to
be done.
I tried to accomplish it by giving two action in Struts-Config.xml. as shown below
eg:
action path=/AddRate
PROTECTED] mailto:[EMAIL PROTECTED] ]
Date: mercredi 8 août 2001 10:26
À: [EMAIL PROTECTED]
Objet: Re: Validation a form
But what is the specific error ?
- Original Message -
From: DUPRAT Alexandre [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, August 07, 2001 11:31 PM
Subject: RE
is called in my Action class)
-Message d'origine-
De: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
Date: lundi 6 août 2001 18:35
À: '[EMAIL PROTECTED]'
Objet: Re: Validation a form
On Mon, 6 Aug 2001, DUPRAT Alexandre wrote:
hi,
How can i validate a form?
I tried :
public
But what is the specific error ?
- Original Message -
From: DUPRAT Alexandre [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, August 07, 2001 11:31 PM
Subject: RE: Validation a form
I don't understand why it does not work.
It crashes only when the validate method is called
hi,
How can i validate a form?
I tried :
public ActionErrors validate(ActionMapping mapping, HttpServletRequest req)
{
ActionErrors errors= new ActionErrors();
if(! getSqlQuery().startsWith(select)){
ActionError error = new ActionError(error.requete);
Did you enable validate=true in struts-config.xml for that action?
Regards -- Tobias
DUPRAT Alexandre [EMAIL PROTECTED]
06.08.2001 15:28
Bitte antworten an struts-user
An:'[EMAIL PROTECTED]' [EMAIL PROTECTED]
Kopie:
Thema:Validation a form
hi,
How can i
.
-Message d'origine-
De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Date: lundi 6 août 2001 16:14
À: [EMAIL PROTECTED]
Objet: Antwort: Validation a form
Did you enable validate=true in struts-config.xml for that action?
Regards -- Tobias
DUPRAT Alexandre [EMAIL PROTECTED
: Validation a form
i have this int parameter in web.xml for ActionServlet :
init-param
param-namevalidate/param-name
param-valuetrue/param-value
/init-param
it seem to work cause i can debug the method in visula age for java.
I enter the method but i've an error 500 as response from my web
On Mon, 6 Aug 2001, DUPRAT Alexandre wrote:
hi,
How can i validate a form?
I tried :
public ActionErrors validate(ActionMapping mapping, HttpServletRequest req)
{
ActionErrors errors= new ActionErrors();
if(! getSqlQuery().startsWith(select)){
ActionError
21 matches
Mail list logo