Hi,

I would be very nice if the VelocityServlet calls a "clean up" method at the
end of doRequest.

finally
        {
            try
            {
                if (vw != null)
                {
                    vw.flush();
                    writerPool.put(vw);
                    output.close();
                }
            }
            catch (Exception e)
            {
                // do nothing
            }
                //user defined clean up method
                cleanUp();
        }

I see the need in my application, but I think it could be a common need. I
have a object that is stored in the session. The presentation servlet reads
the value put it into the context, so the template can use this object. But
after the template was displayed I want to remove this object from the
session. Therefore I need the clean-up hook ;)

It is a common need ? I think it's always good to give a application a
chance to clean up some ressources.

Thomas




Reply via email to