Re: [Actionframework-users] ANNOUNCE: ActionServlet 0.93.2c
Status: Inactive
Brought to you by:
ptoman
|
From: Petr T. <cz5...@ti...> - 2002-10-30 13:54:20
|
>> protected void doGet(HttpServletRequest req, HttpServletResponse res)
{
>> super.doGet(req, res);
>> finishTransaction();
>> }
>
>I thought of this, but it won't work for me, because super.doGet() calls=
>cleanupRequest (which is private so I can't override), and cleanupReques=
t
>will nuke my requestComponents that I need in my finishTransaction.
>Or maybe not? When do requestComponents get destroyed?
You cannot call ActionServlet.getComponent() method from finishTransactio=
n(),
but you can use request components until they are garbage collected.
Btw, as I have just found, there is a bug in calling Destroy.destroy() me=
thod
of request components. My original idea was to destroy() request componen=
t
before the *next* request (because ActionServlet was formerly a subclass
of WebMacro's WMServlet and the template returned from ActionServlet.hand=
le()
could use the component). Now it is sensible to destroy() request compone=
nts
after the current request, i.e. after ActionServlet.requestCleanup(Contex=
t)
in 0.94.
Petr
[ http://dione.zcu.cz/~toman40 - Pet...@pi... - ICQ=3D22957959 ]
___________________________________________________________
http://sms.tiscali.cz ...LOGA a MELODIE na mobil!
Nyn=ED NOV=CC i pro mobiln=ED telefony SIEMENS!
|