struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lixin chu <lixin_...@yahoo.com>
Subject RE: ActionForm: simply calling reset() or have to recreate one ?
Date Wed, 01 Sep 2004 07:29:10 GMT
I see. Checked API doc, saw getServlet() call for
Action. Guess this is what I need to use. 
thanks !

--- Paul McCulloch <paul.mcculloch@axiossystems.com>
wrote:

> I think it was me who pointed you down that route to
> destroy & recreate a
> form bean to clear any data in it.
> 
> reset() is not used for this purpose -  read up on
> what reset() does. 
> 
> "servlet" is a variable of Action and is available
> in all methods of your
> own Action classes.
> 
> Paul
> 
> > -----Original Message-----
> > From: lixin chu [mailto:lixin_chu@yahoo.com]
> > Sent: Saturday, August 28, 2004 3:52 AM
> > To: struts-user@jakarta.apache.org
> > Subject: ActionForm: simply calling reset() or
> have to recreate one ?
> > 
> > 
> > Hi,
> > IN one of my Actions I need to clear the existing
> > session scoped ActionForm, should I just call
> > form.reset() and then repopulate values, or I have
> to
> > remove it and recreate it using RequestUtils ?
> > 
> > I saw a recent message talking about this, but I
> am
> > not sure if I have to recreate one. If so, how do
> I
> > get the servlet parameter needed in:
> > 
> > RequestUtils.createActionForm(request, mapping,
> > mapping.getModuleConfig(), servlet);
> > 
> > thanks !
> > 
> > li xin
> > 
> > 
> > 
> > 		
> > _______________________________
> > Do you Yahoo!?
> > Win 1 of 4,000 free domain names from Yahoo! Enter
> now.
> > http://promotions.yahoo.com/goldrush
> > 
> >
>
---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> user-unsubscribe@struts.apache.org
> > For additional commands, e-mail:
> user-help@struts.apache.org
> > 
> 
> 
>
**********************************************************************
> Axios Email Confidentiality Footer
> Privileged/Confidential Information may be contained
> in this message. If you are not the addressee
> indicated in this message (or responsible for
> delivery of the message to such person), you may not
> copy or deliver this message to anyone. In such
> case, you should destroy this message, and notify us
> immediately. If you or your employer does not
> consent to Internet email messages of this kind,
> please advise us immediately. Opinions, conclusions
> and other information expressed in this message are
> not given or endorsed by my Company or employer
> unless otherwise indicated by an authorised
> representative independent of this message.
> WARNING:
> While Axios Systems Ltd takes steps to prevent
> computer viruses from being transmitted via
> electronic mail attachments we cannot guarantee that
> attachments do not contain computer virus code.  You
> are therefore strongly advised to undertake anti
> virus checks prior to accessing the attachment to
> this electronic mail.  Axios Systems Ltd grants no
> warranties regarding performance use or quality of
> any attachment and undertakes no liability for loss
> or damage howsoever caused.
>
**********************************************************************
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> user-unsubscribe@struts.apache.org
> For additional commands, e-mail:
> user-help@struts.apache.org
> 
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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


Mime
View raw message