I am using DynaValidatorForm but I need to set the default values for some
text fields in a form. Therefore, I write a ActionForm which extends
DynaValidatorForm and use reset method to set default values. The values
were not shown after the form was loaded.
I must miss something here. Could anyone
ou need
to rethink how you design this.
Niall
- Original Message -
From: "pls" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, May 14, 2004 5:33 AM
Subject: How to set an ActionForm to null
> hi there,
>
> i am trying to set an actionform to null af
l the properties you need to) instead of
messing up with strange iterations.
Regards
Andrea
-Messaggio originale-
Da: Richard Yee [mailto:[EMAIL PROTECTED]
Inviato: sabato 15 maggio 2004 0.01
A: Struts Users Mailing List; pls
Oggetto: Re: How to set an ActionForm to null
pls,
You won'
>
news:[EMAIL PROTECTED]
> > > > > > Hi,
> > > > > > I havn't tried this but just try this in
> the
> > > > > execute method :--
> > > > > > public ActionForward execute(ActionMapping
> > > > > mapping, ActionForm
t; > mapping, ActionForm form,
> > > > > HttpServletRequest req, HttpServletResponse
> > res) {
> > > > >
> > > > > ...
> > > > > ...
> > > > > mapping.setAttribute(null);
> > > > >
> >
te(ActionMapping
> > > mapping, ActionForm form,
> > > > HttpServletRequest req, HttpServletResponse
> res) {
> > > >
> > > > ...
> > > > ...
> > > > mapping.setAttribute(null);
> > > >
> > > > }
> > >
> > > ...
> > > ...
> > > mapping.setAttribute(null);
> > >
> > > }
> > >
> > > Hope this may help you!!!
> > > --Amol
> > >
> > > -Original Message-
> > > From: pls [mailto:[EMA
..
> > ...
> > ...
> > mapping.setAttribute(null);
> >
> > }
> >
> > Hope this may help you!!!
> > --Amol
> >
> > -----Original Message-----
> > From: pls [mailto:[EMAIL PROTECTED]
> > Sent: Friday, May 14, 2004 10:03 AM
> &
y, May 14, 2004 10:31 AM
> To: [EMAIL PROTECTED]
> Subject: Re: How to set an ActionForm to null
>
>
> thanks for the suggestion Amol, but that returns an
IllegalStateException..
> thanks for trying anyways.
>
>
> "Amol Yadwadkar" <[EMAIL PROTECTED]> wrote
Has your ActionMappings at Struts-config.xml contains the name of the form
which you are using ?
-Original Message-
From: pls [mailto:[EMAIL PROTECTED]
Sent: Friday, May 14, 2004 10:31 AM
To: [EMAIL PROTECTED]
Subject: Re: How to set an ActionForm to null
thanks for the suggestion
:[EMAIL PROTECTED]
> Sent: Friday, May 14, 2004 10:03 AM
> To: [EMAIL PROTECTED]
> Subject: How to set an ActionForm to null
>
>
> hi there,
>
> i am trying to set an actionform to null after inserting it's properties
> into a DB.
> then, control is forwarded to a di
ssage-
From: pls [mailto:[EMAIL PROTECTED]
Sent: Friday, May 14, 2004 10:03 AM
To: [EMAIL PROTECTED]
Subject: How to set an ActionForm to null
hi there,
i am trying to set an actionform to null after inserting it's properties
into a DB.
then, control is forwarded to a different action and t
hi there,
i am trying to set an actionform to null after inserting it's properties
into a DB.
then, control is forwarded to a different action and the info is read from
the DB back into the actionform for display by a JSP.
the only part that is giving me trouble is with explicitly setting my
acti
13 matches
Mail list logo