struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ian Hunter" <ihun...@hunterweb.net>
Subject Re: Dispatch action & input param
Date Mon, 21 Apr 2003 21:58:21 GMT
Hey Wendy -- since you use custom validations, and I believe DispatchActions
as well, how do you handle validations for create-type calls where there is
no data?  You can't map validation.xml by form name, nor can you map it by
action name, with DispatchActions...

???

----- Original Message -----
From: "Ian Hunter" <ihunter@hunterweb.net>
To: "Struts Users Mailing List" <struts-user@jakarta.apache.org>
Sent: Monday, April 21, 2003 5:53 PM
Subject: Re: Dispatch action & input param


> Exactly.
> ----- Original Message -----
> From: "Anand M S" <anandms5@hotmail.com>
> To: <struts-user@jakarta.apache.org>
> Sent: Monday, April 21, 2003 5:42 PM
> Subject: Re: Dispatch action & input param
>
>
> > Currently I'm using DyanValidatorForm, if I use DynaValidatorActionForm,
I
> > should change the validator.xml, accordingly, right?? currently in
> > validation.xml, I'm using name=ormName, I shpuld change it to action
name
> is
> > I use DynaValidatorActionForm, correct?
> >
> > Anand
> >
> >
> >
> >
> >
> >
> > >From: "Ian Hunter" <ihunter@hunterweb.net>
> > >Reply-To: "Struts Users Mailing List" <struts-user@jakarta.apache.org>
> > >To: "Struts Users Mailing List" <struts-user@jakarta.apache.org>
> > >Subject: Re: Dispatch action & input param
> > >Date: Mon, 21 Apr 2003 17:37:39 -0400
> > >
> > >OK, I follow.  Are you descending your ActionForms from
DynaValidatorForm
> > >or
> > >DynaValidatorActionForm?  It sounds like you want to use
> > >DynaValidatorActionForm because with that class, the validation keys
off
> > >the
> > >Action name rather than the Form name.  Otherwise, the validation will
> kick
> > >in too soon, like it is now.
> > >
> > >Does that help?
> > >
> > >----- Original Message -----
> > >From: "Anand M S" <anandms5@hotmail.com>
> > >To: <struts-user@jakarta.apache.org>
> > >Sent: Monday, April 21, 2003 5:32 PM
> > >Subject: Re: Dispatch action & input param
> > >
> > >
> > > > Here is-
> > > > Normal flow-
> > > > 1.user click on menu to update proifile
> > > > 2.Link creates the "updateProfileForm" and  LoadProfileAction should
> > >load
> > > > the current profile from database and show it the user.
> > > > 3.user modifies the profile
> > > > 4. upon submit, it should save(SaveProfileAction) to the database.
> > > >
> > > > but with the validation
> > > >
> > > > 1. user clicks on menu to update profile
> > > > 2.Link creates the "updateProfileForm"  with null values (all my
> > >validations
> > > > are not null check) and validates stops it to getting to
> > >LoadProfileAction
> > > > and forwards to menu.
> > > >
> > > > are u with me??
> > >
> > >
> > >---------------------------------------------------------------------
> > >To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> > >For additional commands, e-mail: struts-user-help@jakarta.apache.org
> > >
> >
> >
> > _________________________________________________________________
> > The new MSN 8: advanced junk mail protection and 2 months FREE*
> > http://join.msn.com/?page=features/junkmail
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: struts-user-help@jakarta.apache.org
> >
>


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Mime
View raw message