RE: ActionForm: simply calling reset() or have to recreate one ?

2004-09-01 Thread lixin chu
I see. Checked API doc, saw getServlet() call for
Action. Guess this is what I need to use. 
thanks !

--- Paul McCulloch [EMAIL PROTECTED]
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:[EMAIL PROTECTED]
  Sent: Saturday, August 28, 2004 3:52 AM
  To: [EMAIL PROTECTED]
  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:
 [EMAIL PROTECTED]
  For additional commands, e-mail:
 [EMAIL PROTECTED]
  
 
 

**
 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:
 [EMAIL PROTECTED]
 For additional commands, e-mail:
 [EMAIL PROTECTED]
 
 


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

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



RE: ActionForm: simply calling reset() or have to recreate one ?

2004-09-01 Thread Paul McCulloch
You don't event need that. As I said - servlet is a protected instance
variable of Action, so you can just use 'servlet' in code in your Action
desdendants.

Paul

 -Original Message-
 From: lixin chu [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, September 01, 2004 8:29 AM
 To: Struts Users Mailing List
 Subject: RE: ActionForm: simply calling reset() or have to 
 recreate one ?
 
 
 I see. Checked API doc, saw getServlet() call for
 Action. Guess this is what I need to use. 
 thanks !
 
 --- Paul McCulloch [EMAIL PROTECTED]
 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:[EMAIL PROTECTED]
   Sent: Saturday, August 28, 2004 3:52 AM
   To: [EMAIL PROTECTED]
   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:
  [EMAIL PROTECTED]
   For additional commands, e-mail:
  [EMAIL PROTECTED]
   
  
  
 
 **
  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:
  [EMAIL PROTECTED]
  For additional commands, e-mail:
  [EMAIL PROTECTED]
  
  
 
 
 __
 Do You Yahoo!?
 Tired of spam?  Yahoo! Mail has the best spam protection around 
 http://mail.yahoo.com 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

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



Re: ActionForm: simply calling reset() or have to recreate one ?

2004-09-01 Thread Shinobu Kawai

Hi Paul,

 You don't event need that. As I said - servlet is a protected instance
 variable of Action, so you can just use 'servlet' in code in your Action
 desdendants.
I wonder why it's not private?  Not very encapsulated...

Best regards,
-- Shinobu Kawai

--
Shinobu Kawai [EMAIL PROTECTED], [EMAIL PROTECTED]




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



Re: ActionForm: simply calling reset() or have to recreate one ?

2004-09-01 Thread Yves Sy
Probably to discourage subclasses from creating/maintaining their own
instance of ActionServlet... But then it doesn't make any sense to do
that anyway, although you'll never believe what some users end up
coming up with.

I'd be very interested to hear the answer to this one.

-Yves-

On Wed, 01 Sep 2004 18:04:57 +0900, Shinobu Kawai [EMAIL PROTECTED] wrote:
 
 Hi Paul,
 
  You don't event need that. As I said - servlet is a protected instance
  variable of Action, so you can just use 'servlet' in code in your Action
  desdendants.
 I wonder why it's not private?  Not very encapsulated...
 
 Best regards,
 -- Shinobu Kawai
 
 --
 Shinobu Kawai [EMAIL PROTECTED], [EMAIL PROTECTED]
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


-- 
For me to poop on!
http://www.formetopoopon.com
http://www.nbc.com/nbc/Late_Night_with_Conan_O'Brien/video/triumph.shtml

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



RE: ActionForm: simply calling reset() or have to recreate one ?

2004-08-31 Thread Paul McCulloch
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:[EMAIL PROTECTED]
 Sent: Saturday, August 28, 2004 3:52 AM
 To: [EMAIL PROTECTED]
 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: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


**
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



ActionForm: simply calling reset() or have to recreate one ?

2004-08-27 Thread lixin chu
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]