Re: Validator and DispatchAction

2004-02-18 Thread Carl Walker
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'

RE: Validator and DispatchAction

2004-02-18 Thread Renato Romano
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

RE: Validator and DispatchAction

2004-02-18 Thread Barnett, Brian W.
Set validate=false in your action mapping in struts-config. This tells the struts framework not to call validate. Then in your action class you can call validate where appropriate, i.e., the *save* method. -Original Message- From: Renato Romano [mailto:[EMAIL PROTECTED] Sent: Wednesday,

RE: Validator and DispatchAction

2004-02-18 Thread Nicholas L Mohler
_ -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

RE: Validator and DispatchAction

2003-08-28 Thread Steve Raeburn
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,

Re: Validator and DispatchAction

2003-08-27 Thread Nagendra Kumar O V S
hi validator has nothing to do with Dispatch action. paste ur code here if possible to trace ur problem --nagi ---Original Message--- From: Struts Users Mailing List Date: Wednesday, August 27, 2003

Re: Validator and DispatchAction

2003-08-27 Thread Venkat Jambulingam
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)

Re: Validator and DispatchAction

2003-08-27 Thread Venkat Jambulingam
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

RE: Validator and DispatchAction

2003-08-27 Thread Steve Raeburn
[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

RE: Validator and DispatchAction

2003-08-27 Thread Yansheng Lin
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

Re: Validator and DispatchAction

2003-08-27 Thread Venkat Jambulingam
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

RE: Validator and DispatchAction

2003-08-27 Thread Venkat Jambulingam
:[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

RE: Validator and DispatchAction

2003-08-27 Thread Steve Raeburn
:[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

RE: Validator and DispatchAction

2003-08-27 Thread Venkat Jambulingam
://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

RE: Validator and DispatchAction

2003-08-27 Thread Venkat Jambulingam
://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

RE: Validator and DispatchAction

2003-08-27 Thread Venkat Jambulingam
://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

RE: Validator and DispatchAction

2003-08-27 Thread Yee, Richard K,,DMDCWEST
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

RE: Validator and DispatchAction

2003-08-27 Thread Venkat Jambulingam
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

Re: Validator and DispatchAction

2002-06-14 Thread William W
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 =

Re: Validator and DispatchAction

2002-06-14 Thread David Winterfeldt
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,

Re: Validator and DispatchAction

2002-06-13 Thread William W
] 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

Re: Validator and DispatchAction

2002-06-13 Thread Raffy_Lata
[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

Re: Validator and DispatchAction

2002-06-13 Thread William W
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

Re: Validator and DispatchAction

2002-06-13 Thread David Winterfeldt
] 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

Re: Validator and DispatchAction

2002-06-13 Thread William W
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

Re: Validator and DispatchAction

2002-06-13 Thread David Winterfeldt
] 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

Re: Validator and DispatchAction

2002-06-12 Thread Rick Reumann
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

Re: Validator and DispatchAction

2002-06-12 Thread David Winterfeldt
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