: 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
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
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],
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
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
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,
6 matches
Mail list logo