Michael Hu wrote:
> > > Implicitly, the JSP engine will allocate resources in the pageContext.  Although 
>not
> > > explictly demanded by the specs, it should be safe to assume that 
>releasePageContext()
> > > will be called in service's finally block for JSP 1.1 compliant implementations 
>(refer
> > > to page 112 and 139 of the JSP 1.1 specs).

> > Err, the javadoc I read noted a releasePageContext() call in the JspFactory, not
> > one on the JSPServlet.  Did I miss this?  releasePageContext() did seem a
> > natural place to release transient, system resources, though not ideally named....

> releasePageContext is a factory method, and indirectly gets called by the 
>JSPServlet's
> service method:

So we're in violent agreement, which means I'm not communicating something very
well.

If releasePageContext() is called against the factory, that means that the
writer of the JSP page can't write their own cleanup routines.  From a server
provider perspective, clearly, we can.  But that makes extended tags which
export info that have their own cleanup requirements kind of difficult to
create, yes?

Or do users get to specify the JspFactory?

-Dave

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html

Reply via email to