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

2004-09-01 Thread lixin chu
: 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

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

2004-09-01 Thread Paul McCulloch
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

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],

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

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

2004-08-31 Thread Paul McCulloch
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

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,