DispatchAction has a lot of things to improve on...use of declarative
exceptions is one...then there's this issue you brought up about the
validator...you may have to do programmatic validation to provide different
validation rules for each method in the DispatchAction for now..
-




"William W" <[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 the form for diferents methods in the
same Action ? Am I wrong ?
Thanks,
William.


>From: David Winterfeldt <[EMAIL PROTECTED]>
>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>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 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 retrieve the validation
>rules).
>
>David
>
>--- Rick Reumann <[EMAIL PROTECTED]> wrote:
> > 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 update method the userId and
> > the userName are required.
> > WW> How can I can do a dependency validation with
> > the validator.xml ?
> >
> >     I'm curious about this as well. There was a post
> > a few days back
> >     dealing with the same issue. I think you are
> > able to nest
> >     validation rules for a form but I forgot the
> > exact syntax. Maybe
> >     someone else could shed some light again on how
> > to do this.
> >
> >
> > --
> >
> > Rick
> > mailto:[EMAIL PROTECTED]
> >
> > "If you go to a party, and you want to be the
> > popular one at the
> > party, do this: Wait until no one is looking, then
> > kick a burning log
> > out of the fireplace onto the carpet. Then jump on
> > top of it with your
> > body and yell, "Log o' fire! Log o' fire!" I've
> > never done this, but I
> > think it'd work."
> >   -Jack Handey
> >
> >
> > --
> > To unsubscribe, e-mail:
> > <mailto:[EMAIL PROTECTED]>
> > For additional commands, e-mail:
> > <mailto:[EMAIL PROTECTED]>
> >
>
>
>__________________________________________________
>Do You Yahoo!?
>LAUNCH - Your Yahoo! Music Experience
>http://launch.yahoo.com
>
>--
>To unsubscribe, e-mail:
><mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail:
><mailto:[EMAIL PROTECTED]>




_________________________________________________________________
MSN Photos is the easiest way to share and print your photos:
http://photos.msn.com/support/worldwide.aspx


--
To unsubscribe, e-mail:   <
mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <
mailto:[EMAIL PROTECTED]>






**********************************************************************
Please Note:
The information in this E-mail message, and any files transmitted
with it, is confidential and may be legally privileged.  It is
intended only for the use of the individual(s) named above.  If you
are the intended recipient, be aware that your use of any confidential
or personal information may be restricted by state and federal
privacy laws.  If you, the reader of this message, are not the
intended recipient, you are hereby notified that you should not
further disseminate, distribute, or forward this E-mail message.
If you have received this E-mail in error, please notify the sender
and delete the material from any computer.  Thank you.
**********************************************************************




--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to