javax.servlet.jsp

Class JspFactory


public abstract class JspFactory
extends Object

JspFactory objects should not be used by JSP authors.

Method Summary

static JspFactory
getDefaultFactory()
abstract JspEngineInfo
getEngineInfo()
abstract JspApplicationContext
getJspApplicationContext(ServletContext context)
abstract PageContext
getPageContext(Servlet servlet, ServletRequest request, ServletResponse response, String errorPageURL, boolean needsSession, int buffer, boolean autoflush)
abstract void
releasePageContext(PageContext pc)
static void
setDefaultFactory(JspFactory deflt)

Methods inherited from class java.lang.Object

clone, equals, extends Object> getClass, finalize, hashCode, notify, notifyAll, toString, wait, wait, wait

Method Details

getDefaultFactory

public static JspFactory getDefaultFactory()
Usages and Demos :

View More Examples of getDefaultFactory()
   1: 
   2:     JspFactory _jspxFactory = null;
   3:     javax.servlet.jsp.PageContext pageContext = null;
   4:         ...
   5:     try {
   6:       _jspxFactory = JspFactory.getDefaultFactory();
   7:       response.setContentType("text/html;charset=ISO-8859-1");
   8:       pageContext = _jspxFactory.getPageContext(this, request, response,
   9:                   null, true, 8192, true);

View Full Code Here
   1: 
   2:     JspFactory _jspxFactory = null;
   3:     javax.servlet.jsp.PageContext pageContext = null;
   4:         ...
   5:     try {
   6:       _jspxFactory = JspFactory.getDefaultFactory();
   7:       response.setContentType("text/html;charset=ISO-8859-1");
   8:       pageContext = _jspxFactory.getPageContext(this, request, response,
   9:                   null, true, 8192, true);

View Full Code Here
   1: 
   2:     JspFactory _jspxFactory = null;
   3:     javax.servlet.jsp.PageContext pageContext = null;
   4:         ...
   5:     try {
   6:       _jspxFactory = JspFactory.getDefaultFactory();
   7:       response.setContentType("text/html;charset=ISO-8859-1");
   8:       pageContext = _jspxFactory.getPageContext(this, request, response,
   9:                   null, true, 8192, true);

View Full Code Here
   1: 
   2:     JspFactory _jspxFactory = null;
   3:     javax.servlet.jsp.PageContext pageContext = null;
   4:         ...
   5:     try {
   6:       _jspxFactory = JspFactory.getDefaultFactory();
   7:       response.setContentType("text/html;charset=ISO-8859-1");
   8:       pageContext = _jspxFactory.getPageContext(this, request, response,
   9:                   null, true, 8192, true);

View Full Code Here
   1: 
   2:     JspFactory _jspxFactory = null;
   3:     javax.servlet.jsp.PageContext pageContext = null;
   4:         ...
   5:     try {
   6:       _jspxFactory = JspFactory.getDefaultFactory();
   7:       response.setContentType("text/html;charset=ISO-8859-1");
   8:       pageContext = _jspxFactory.getPageContext(this, request, response,
   9:                   null, true, 8192, true);

View Full Code Here

getEngineInfo

public abstract JspEngineInfo getEngineInfo()
Usages and Demos :

View More Examples of getEngineInfo()
   1: import javax.servlet.ServletResponse;
   2: import javax.servlet.jsp.JspFactory;
   3: import javax.servlet.jsp.JspEngineInfo;
   4:         ...
   5: 
   6:     private JspFactory _factory;
   7:         ...
   8:     public JspFactoryImpl(JspFactory factory) {
   9:         if (factory == null)
  10:         ...
  11:     public JspEngineInfo getEngineInfo() {
  12:         return _factory.getEngineInfo();

View Full Code Here

getJspApplicationContext

public abstract JspApplicationContext getJspApplicationContext(ServletContext context)
Usages and Demos :

View More Examples of getJspApplicationContext(ServletContext context)
   1: import javax.servlet.jsp.JspApplicationContext;
   2: import javax.servlet.jsp.JspFactory;
   3: import javax.servlet.jsp.JspException;
   4:         ...
   5: 
   6:         JspFactory jspFactory = JspFactory.getDefaultFactory();
   7:         JspApplicationContext jspAppContext =
   8:         ...
   9:             jspFactory.getJspApplicationContext(pageContext.getServletContext());
  10:         ExpressionFactory exprFactory = jspAppContext.getExpressionFactory();

View Full Code Here

getPageContext

public abstract PageContext getPageContext(Servlet servlet,
                                           ServletRequest request,
                                           ServletResponse response,
                                           String errorPageURL,
                                           boolean needsSession,
                                           int buffer,
                                           boolean autoflush)
Usages and Demos :

View More Examples of getPageContext(Servlet servlet,ServletRequest request,ServletResponse response,String errorPageURL,boolean needsSession,int buffer,boolean autoflush)
   1: 
   2:         JspFactory factory = JspFactory.getDefaultFactory();
   3:         ...
   4:         PageContext pageContext = factory.getPageContext( this, request, response, null, true, JspWriter.DEFAULT_BUFFER, true);
   5:         HttpSession session = pageContext.getSession();
   6:         if (pageContext.getAttribute(OracleJspRuntime.JSP_REQUEST_REDIRECTED, PageContext.REQUEST_SCOPE) != null) {
   7:             pageContext.setAttribute(OracleJspRuntime.JSP_PAGE_DONTNOTIFY, "true", PageContext.PAGE_SCOPE);

View Full Code Here
   1: 
   2:         JspFactory factory = JspFactory.getDefaultFactory();
   3:         ...
   4:         PageContext pageContext = factory.getPageContext( this, request, response, null, true, JspWriter.DEFAULT_BUFFER, true);
   5:         HttpSession session = pageContext.getSession();
   6:         if (pageContext.getAttribute(OracleJspRuntime.JSP_REQUEST_REDIRECTED, PageContext.REQUEST_SCOPE) != null) {
   7:             pageContext.setAttribute(OracleJspRuntime.JSP_PAGE_DONTNOTIFY, "true", PageContext.PAGE_SCOPE);

View Full Code Here
   1:         response.setContentType( "text/xml");
   2:         JspFactory factory = JspFactory.getDefaultFactory();
   3:         ...
   4:         PageContext pageContext = factory.getPageContext( this, request, response, null, true, JspWriter.DEFAULT_BUFFER, true);
   5:         HttpSession session = pageContext.getSession();
   6:         if (pageContext.getAttribute(OracleJspRuntime.JSP_REQUEST_REDIRECTED, PageContext.REQUEST_SCOPE) != null) {
   7:             pageContext.setAttribute(OracleJspRuntime.JSP_PAGE_DONTNOTIFY, "true", PageContext.PAGE_SCOPE);

View Full Code Here
   1: 
   2:         JspFactory factory = JspFactory.getDefaultFactory();
   3:         ...
   4:         PageContext pageContext = factory.getPageContext( this, request, response, null, true, JspWriter.DEFAULT_BUFFER, true);
   5:         HttpSession session = pageContext.getSession();
   6:         if (pageContext.getAttribute(OracleJspRuntime.JSP_REQUEST_REDIRECTED, PageContext.REQUEST_SCOPE) != null) {
   7:             pageContext.setAttribute(OracleJspRuntime.JSP_PAGE_DONTNOTIFY, "true", PageContext.PAGE_SCOPE);

View Full Code Here
   1:         response.setContentType( "text/xml");
   2:         JspFactory factory = JspFactory.getDefaultFactory();
   3:         ...
   4:         PageContext pageContext = factory.getPageContext( this, request, response, null, true, JspWriter.DEFAULT_BUFFER, true);
   5:         HttpSession session = pageContext.getSession();
   6:         if (pageContext.getAttribute(OracleJspRuntime.JSP_REQUEST_REDIRECTED, PageContext.REQUEST_SCOPE) != null) {
   7:             pageContext.setAttribute(OracleJspRuntime.JSP_PAGE_DONTNOTIFY, "true", PageContext.PAGE_SCOPE);

View Full Code Here

releasePageContext

public abstract void releasePageContext(PageContext pc)
Usages and Demos :

View More Examples of releasePageContext(PageContext pc)
   1: import javax.servlet.ServletResponse;
   2: import javax.servlet.jsp.JspFactory;
   3: import javax.servlet.jsp.JspEngineInfo;
   4:         ...
   5: 
   6:     private JspFactory _factory;
   7:         ...
   8:     public JspFactoryImpl(JspFactory factory) {
   9:         if (factory == null)
  10:         ...
  11:         ELContexts.pop();
  12:         _factory.releasePageContext(pc);

View Full Code Here
   1: 
   2:         JspFactory factory = JspFactory.getDefaultFactory();
   3:         PageContext pageContext = factory.getPageContext( this, request, response, null, true, JspWriter.DEFAULT_BUFFER, true);
   4:         ...
   5:             pageContext.setAttribute(OracleJspRuntime.JSP_PAGE_DONTNOTIFY, "true", PageContext.PAGE_SCOPE);
   6:             factory.releasePageContext(pageContext);
   7:             return;
   8:         ...
   9:             if (out != null) out.close();
  10:             factory.releasePageContext(pageContext);
  11:         }

View Full Code Here
   1: 
   2:         JspFactory _jspxFactory = null;
   3:         PageContext pageContext = null;
   4:         ...
   5:             }
   6:             _jspxFactory = JspFactory.getDefaultFactory();
   7:             response.setContentType("text/html;charset=8859_1");
   8:         ...
   9:             out.flush();
  10:             _jspxFactory.releasePageContext(pageContext);
  11:         }

View Full Code Here
   1: 
   2:         JspFactory factory = JspFactory.getDefaultFactory();
   3:         PageContext pageContext = factory.getPageContext( this, request, response, null, true, JspWriter.DEFAULT_BUFFER, true);
   4:         ...
   5:             pageContext.setAttribute(OracleJspRuntime.JSP_PAGE_DONTNOTIFY, "true", PageContext.PAGE_SCOPE);
   6:             factory.releasePageContext(pageContext);
   7:             return;
   8:         ...
   9:             if (out != null) out.close();
  10:             factory.releasePageContext(pageContext);
  11:         }

View Full Code Here
   1:         response.setContentType( "text/xml");
   2:         JspFactory factory = JspFactory.getDefaultFactory();
   3:         PageContext pageContext = factory.getPageContext( this, request, response, null, true, JspWriter.DEFAULT_BUFFER, true);
   4:         ...
   5:             pageContext.setAttribute(OracleJspRuntime.JSP_PAGE_DONTNOTIFY, "true", PageContext.PAGE_SCOPE);
   6:             factory.releasePageContext(pageContext);
   7:             return;
   8:         ...
   9:             if (out != null) out.close();
  10:             factory.releasePageContext(pageContext);
  11:         }

View Full Code Here

setDefaultFactory

public static void setDefaultFactory(JspFactory deflt)
Usages and Demos :

View More Examples of setDefaultFactory(JspFactory deflt)
   1: import javax.servlet.ServletException;
   2: import javax.servlet.jsp.JspFactory;
   3: 
   4:         ...
   5: 
   6:     if (JspFactory.getDefaultFactory() == null)
   7:         ...
   8:       JspFactory.setDefaultFactory(QJspFactory.create());
   9:   }

View Full Code Here
   1:     static {
   2:         if( JspFactory.getDefaultFactory() == null ) {
   3:             JspFactoryImpl factory = new JspFactoryImpl();
   4:         ...
   5:             }
   6:             JspFactory.setDefaultFactory(factory);
   7:         }
   8:     }

View Full Code Here
   1: import javax.servlet.ServletException;
   2: import javax.servlet.jsp.JspFactory;
   3: 
   4:         ...
   5: 
   6:     if (JspFactory.getDefaultFactory() == null) {
   7:       try {
   8:         ...
   9:         Class jspFC = Class.forName(JSP_FACTORY);
  10:         JspFactory jspF = (JspFactory) jspFC.newInstance();
  11:         ...
  12:         JspFactory.setDefaultFactory(jspF);

View Full Code Here
   1: import javax.servlet.ServletContext;
   2: import javax.servlet.jsp.JspFactory;
   3: 
   4:         ...
   5:         SecurityClassLoad.securityClassLoad(factory.getClass().getClassLoader());
   6:         JspFactory.setDefaultFactory(factory);
   7:     }
   8: 

View Full Code Here