Name

JspFactory

Synopsis

The JspFactory is an abstract class that defines a number of factory methods available to a JSP page at runtime for the purposes of creating instances of various interfaces and classes used to support the JSP implementation.

A JSP container creates an instance of a concrete subclass during its initialization phase and makes it globally available for use by JSP implementation classes by registering the instance via the static setDefaultFactory( ) method.

Synopsis

Class name:

javax.servlet.jsp.JspFactory

Extends:

None

Implements:

None

Implemented by:

Internal container-dependent class; most containers use the reference implementation of the class (developed in the Apache Jakarta project)

Constructor

public JspFactory( )

Creates a new JspFactory instance.

Methods

public static synchronized JspFactory getDefaultFactory( )

Returns the default JspFactory for the container.

public abstract JspEngineInfo getEngineInfo( )

Returns the JspEngineInfo for the container.

public abstract getPageContext getPageContext(javax.servlet.Servlet servlet, javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, String errorPageURL, boolean needsSession, int buffer, boolean autoflush)

Returns a properly initialized instance of an implementation dependent PageContext subclass. This method is typically called early in the processing of the _jspService( ) method of a JSP implementation class to get a PageContext object for the request being processed. Calling ...

Get JavaServer Pages, 3rd 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.