Name

JspFactory

Synopsis

JSP containers provide subclasses of this class to create JspInfo and PageContext objects. The methods of the JspFactory class should not be called from within a JSP itself. Instead, the container is responsible for using the factory to create a PageContext object and making it available to the JSP. All JSP pages have a PageContext object available by default.

public abstract class JspFactory {
// Public Constructors
   public JspFactory();  
// Public Class Methods
   public static JspFactory getDefaultFactory();                 // synchronized
   public static void setDefaultFactory( JspFactory deflt);      // synchronized
                  // Public Instance Methods
   public abstract JspEngineInfo getEngineInfo();  
   public abstract PageContext getPageContext(Servlet servlet, 
        ServletRequest request, ServletResponse response, 
        String errorPageURL, boolean needsSession, 
        int buffer, boolean autoflush);  
   public abstract void releasePageContext( PageContext pc);  
}

Passed To

JspFactory.setDefaultFactory()

Returned By

JspFactory.getDefaultFactory()

Get Java Enterprise in a Nutshell, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.