JspFactory Class | |
public abstract class JspFactory extends Object | |
Object JspFactory The JspFactory classprovides methods for creating or specifying objects that are used to support JSP development, including JspEngineInfo and PageContext objects. |
JspFactory() | |
public JspFactory() | Constructor |
Since the JspFactory class is abstract, a JspFactory object is not created directly. Sub-classes of JspFactory can call this constructor. |
getDefaultFactory() | |
public static JspFactory getDefaultFactory() | Method |
getDefaultFactory() returns a reference to the current default JspFactory object. The return object can then call the other methods defined in the JspFactory class. |
setDefaultFactory() | |
public static void setDefaultFactory(JspFactory fact) | Method |
setDefaultFactory() is used to changethe default jsp object. This method can only be called by the JSP engine runtime. |
getEngineInfo() | |
public abstract JspEngineInfo getEngineInfo() | Method |
getEngineInfo() returnsa JspEngineInfo object that can access information about the current JSP engine. |
getPageContext() | |
public abstract PageContext getPageContext(Servlet requestingServlet, ServletRequest request, ServletResponse response, String errorPageURL, boolean needsSession, int buffer, boolean autoFlush) | Method |
getPageContext() returns a reference to the PageContext object associated with the requesting servlet. The errorPageURL is the URL of the error page of the JSP. This can be set to null if there is no error page. The parameter needsSession is true if the JSP is participating in a session. The parameter autoFlush is true if the buffer will automatically flush to the output stream on buffer overflow. |
releasePageContext() | |
public abstract void releasePageContext(PageContext pc) | Method |
releasePageContext() releases the specified PageContext object. This method results in the PageContext.release() method being called. This method should be invoked prior to returning from the _jspService() method of a JSP class. |