I'm quite new to the validator framework, and was trying to figure out
how to use it. My situation is:
1) I want to perform server side validation, and so I made my form
extend ValidatorForm;
2) the action that processes my form is a DispatchAction, so I have
methods like edit, save list, all
I ran into the same problem and converted all my DispatchActions to
Actions. The downside is that there are more class files, but the mappings
seem cleaner, especially in handling the 'input' attribute for html:errors
/.
Also, using Actions lets me specify different values for the 'validate'
PROTECTED]
Tel.: 010 2712603
_
-Original Message-
From: Carl Walker [mailto:[EMAIL PROTECTED]
Sent: mercoledì 18 febbraio 2004 16.43
To: Struts Users Mailing List
Subject: Re: Validator and DispatchAction
I ran into the same problem and converted all my
, February 18, 2004 6:43 AM
To: 'Struts Users Mailing List'
Subject: Validator and DispatchAction
I'm quite new to the validator framework, and was trying to figure out
how to use it. My situation is:
1) I want to perform server side validation, and so I made my form
extend ValidatorForm;
2
_
-Original Message-
From: Carl Walker [mailto:[EMAIL PROTECTED]
Sent: mercoledì 18 febbraio 2004 16.43
To: Struts Users Mailing List
Subject: Re: Validator and DispatchAction
I ran into the same problem and converted all my DispatchActions to
Actions. The downside is that there are more
Ok, I see one potential problem. Your methods are declared as throwing
ServletException and IOException, but for Struts 1.1 they should be declared
as throwing Exception.
public ActionForward create(
ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
Has anybody been successful using validator framework with
DispatchAction? Please let me know. I am getting NoSuchMethodFound
error. Please reply.
TIA,
Venkat
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands
08:00:18 PM
To: [EMAIL PROTECTED]
Subject: Validator and
DispatchAction
Has anybody been successful using validator framework
withDispatchAction? Please let me know. I am getting
"NoSuchMethodFound"error. Please
reply.
Hi Nagi,
Here is the error I'm getting while using validator with
DispatchAction:
[ERROR] DispatchAction - -Action[/tr518page1] does not contain method
named error java.lang.NoSuchMethodException:
errorjava.lang.NoSuchMethodException: error
at java.lang.Class.getMethod0(Native Method
defined in the dispatchaction class.
have u defined the parameter for this action mapping??
-- nagi
---Original Message---
From: Venkat Jambulingam
Date: Wednesday, August 27, 2003 09:13:27 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: Validator and DispatchAction
Hi Nagi
[mailto:[EMAIL PROTECTED]
Sent: August 27, 2003 8:43 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: Validator and DispatchAction
Hi Nagi,
Here is the error I'm getting while using validator with
DispatchAction:
[ERROR] DispatchAction - -Action[/tr518page1] does not contain method
Raeburn [mailto:[EMAIL PROTECTED]
Sent: August 27, 2003 10:05 AM
To: Struts Users Mailing List
Subject: RE: Validator and DispatchAction
This is the relevant part of the message: Action[/tr518page1] does not
contain method named error
Does your DispatchAction class
PROTECTED]; [EMAIL PROTECTED]
Subject: Re: Validator and DispatchAction
Hi Nagi,
Here is the error I'm getting while using validator with
DispatchAction:
[ERROR] DispatchAction - -Action[/tr518page1] does not contain method
named error java.lang.NoSuchMethodException
:[EMAIL PROTECTED]
Sent: August 27, 2003 8:43 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: Validator and DispatchAction
Hi Nagi,
Here is the error I'm getting while using validator with
DispatchAction:
[ERROR] DispatchAction - -Action[/tr518page1] does not contain
method
named
:[EMAIL PROTECTED]
Sent: August 27, 2003 9:58 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RE: Validator and DispatchAction
Hi Steve,
I don't have a method named error in my action class. I don't need
one. Why is it looking for such a method in my action class? Help me
please. I have
://www.ninsky.com/struts/
-Original Message-
From: Venkat Jambulingam [mailto:[EMAIL PROTECTED]
Sent: August 27, 2003 8:43 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: Validator and DispatchAction
Hi Nagi,
Here is the error I'm getting while using validator
://www.ninsky.com/struts/
-Original Message-
From: Venkat Jambulingam [mailto:[EMAIL PROTECTED]
Sent: August 27, 2003 8:43 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: Validator and DispatchAction
Hi Nagi,
Here is the error I'm getting while using validator
://www.ninsky.com/struts/
-Original Message-
From: Venkat Jambulingam [mailto:[EMAIL PROTECTED]
Sent: August 27, 2003 9:58 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RE: Validator and DispatchAction
Hi Steve,
I don't have a method named error in my action class. I don't need
Venkat,
What was the solution?
-R
-Original Message-
From: Venkat Jambulingam [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 27, 2003 11:06 AM
To: [EMAIL PROTECTED]
Subject: RE: Validator and DispatchAction
It works now. Thank you everyone for helping me.
[EMAIL PROTECTED] 08/27
PROTECTED]
Subject: RE: Validator and DispatchAction
It works now. Thank you everyone for helping me.
[EMAIL PROTECTED] 08/27/03 12:58PM
Hi Steve,
I don't have a method named error in my action class. I don't need
one.
Why is it looking for such a method in my action class? Help me please.
I
have
Hi,
i dont know how to use the Struts validator together with DispatchAction (Struts
1.1b1):
in the validator.xml there had to be the
- name of the form of struts-config (f. e. TestForm)
- or the name of the path from struts-config (f.e. /test )
as soon as one of this appears
My solution :
I did a class MyValidator with two methods (verifyMethod and
validateRequired)
---
private static boolean verifyMethod(
Object bean,
ValidatorAction va,
Field field,
ActionErrors errors,
HttpServletRequest request) {
String methodRequest =
I think that is good. This along the lines of what I
was thinking.
David
--- William W [EMAIL PROTECTED] wrote:
My solution :
I did a class MyValidator with two methods
(verifyMethod and
validateRequired)
---
private static boolean verifyMethod(
Object bean,
]
To: Struts Users Mailing List [EMAIL PROTECTED], Rick
Reumann [EMAIL PROTECTED]
Subject: Re: Validator and DispatchAction
Date: Wed, 12 Jun 2002 14:42:51 -0700 (PDT)
You would currently have to write your own required
validation method and have it check a variable defined
by a field to see
[EMAIL PROTECTED] on 06/13/2002 07:46:09 AM
Please respond to Struts Users Mailing List
[EMAIL PROTECTED]
To: [EMAIL PROTECTED]
cc:
Subject: Re: Validator and DispatchAction
I think that if I use DispatchAction with ValidatorActionForm I will have
the same problem. How can I validate
W [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: Validator and DispatchAction
Date: Thu, 13 Jun 2002 14:46:09 +
I think that if I use DispatchAction with ValidatorActionForm I will have
the same problem. How can I validate the form
]
To: [EMAIL PROTECTED]
Subject: Re: Validator and DispatchAction
Date: Thu, 13 Jun 2002 14:46:09 +
I think that if I use DispatchAction with
ValidatorActionForm I will have
the same problem. How can I validate the form for
diferents methods in the
same Action ? Am I wrong ?
Thanks
Good :)
I will try !!!
Thanks !
WIlliam.
From: David Winterfeldt [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: Re: Validator and DispatchAction
Date: Thu, 13 Jun 2002 09:04:56 -0700 (PDT)
You
]
Subject: Re: Validator and DispatchAction
Date: Thu, 13 Jun 2002 09:04:56 -0700 (PDT)
You can't use booleans in the depends, but there
can
be dependencies setup between validation routines.
You can make a method check pluggable validator and
have required and other validator depend
Hi !
I have a UserForm, the fields are : userId and userName.
I have a UserAction that extends DispatchAction. The UserAction have two
methods (insert and update). For the insert method only the userName is
required, and for update method the userId and the userName are required.
How can I
On Wednesday, June 12, 2002, 10:14:09 AM, William wrote:
WW I have a UserForm, the fields are : userId and userName.
WW I have a UserAction that extends DispatchAction. The UserAction have two
WW methods (insert and update). For the insert method only the userName is
WW required, and for
You would currently have to write your own required
validation method and have it check a variable defined
by a field to see if it should perform the validation
or not. Or define a separate set of validation rules
for each action and use ValidatorActionForm (which
uses the action path to
32 matches
Mail list logo