⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 pagecontext.html

📁 j2ee的API 1.4版本,j2ee的帮助文档
💻 HTML
📖 第 1 页 / 共 4 页
字号:
<P><DL><DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#javax.servlet.jsp.PageContext.REQUEST">Constant Field Values</A></DL></DL><HR><A NAME="RESPONSE"><!-- --></A><H3>RESPONSE</H3><PRE>public static final <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>RESPONSE</B></PRE><DL><DD>Name used to store ServletResponse in PageContext name table.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#javax.servlet.jsp.PageContext.RESPONSE">Constant Field Values</A></DL></DL><HR><A NAME="CONFIG"><!-- --></A><H3>CONFIG</H3><PRE>public static final <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>CONFIG</B></PRE><DL><DD>Name used to store ServletConfig in PageContext name table.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#javax.servlet.jsp.PageContext.CONFIG">Constant Field Values</A></DL></DL><HR><A NAME="SESSION"><!-- --></A><H3>SESSION</H3><PRE>public static final <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>SESSION</B></PRE><DL><DD>Name used to store HttpSession in PageContext name table.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#javax.servlet.jsp.PageContext.SESSION">Constant Field Values</A></DL></DL><HR><A NAME="OUT"><!-- --></A><H3>OUT</H3><PRE>public static final <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>OUT</B></PRE><DL><DD>Name used to store current JspWriter in PageContext name table.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#javax.servlet.jsp.PageContext.OUT">Constant Field Values</A></DL></DL><HR><A NAME="APPLICATION"><!-- --></A><H3>APPLICATION</H3><PRE>public static final <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>APPLICATION</B></PRE><DL><DD>Name used to store ServletContext in PageContext name table.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#javax.servlet.jsp.PageContext.APPLICATION">Constant Field Values</A></DL></DL><HR><A NAME="EXCEPTION"><!-- --></A><H3>EXCEPTION</H3><PRE>public static final <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>EXCEPTION</B></PRE><DL><DD>Name used to store uncaught exception in ServletRequest attribute  list and PageContext name table.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#javax.servlet.jsp.PageContext.EXCEPTION">Constant Field Values</A></DL></DL><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TD></TR></TABLE><A NAME="PageContext()"><!-- --></A><H3>PageContext</H3><PRE>public <B>PageContext</B>()</PRE><DL><DD>Sole constructor. (For invocation by subclass constructors,  typically implicit.)<P></DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Method Detail</B></FONT></TD></TR></TABLE><A NAME="initialize(javax.servlet.Servlet, javax.servlet.ServletRequest, javax.servlet.ServletResponse, java.lang.String, boolean, int, boolean)"><!-- --></A><H3>initialize</H3><PRE>public abstract void <B>initialize</B>(<A HREF="../../../javax/servlet/Servlet.html" title="interface in javax.servlet">Servlet</A>&nbsp;servlet,                                <A HREF="../../../javax/servlet/ServletRequest.html" title="interface in javax.servlet">ServletRequest</A>&nbsp;request,                                <A HREF="../../../javax/servlet/ServletResponse.html" title="interface in javax.servlet">ServletResponse</A>&nbsp;response,                                <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;errorPageURL,                                boolean&nbsp;needsSession,                                int&nbsp;bufferSize,                                boolean&nbsp;autoFlush)                         throws <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A>,                                <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/IllegalStateException.html" title="class or interface in java.lang">IllegalStateException</A>,                                <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/IllegalArgumentException.html" title="class or interface in java.lang">IllegalArgumentException</A></PRE><DL><DD><p> The initialize method is called to initialize an uninitialized PageContext so that it may be used by a JSP Implementation class to service an incoming request and response within it's _jspService() method. <p> This method is typically called from JspFactory.getPageContext() in order to initialize state. <p> This method is required to create an initial JspWriter, and associate the "out" name in page scope with this newly created object. <p> This method should not be used by page  or tag library authors.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>servlet</CODE> - The Servlet that is associated with this PageContext<DD><CODE>request</CODE> - The currently pending request for this Servlet<DD><CODE>response</CODE> - The currently pending response for this Servlet<DD><CODE>errorPageURL</CODE> - The value of the errorpage attribute from the page      directive or null<DD><CODE>needsSession</CODE> - The value of the session attribute from the      page directive<DD><CODE>bufferSize</CODE> - The value of the buffer attribute from the page      directive<DD><CODE>autoFlush</CODE> - The value of the autoflush attribute from the page      directive<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></CODE> - during creation of JspWriter<DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/IllegalStateException.html" title="class or interface in java.lang">IllegalStateException</A></CODE> - if out not correctly initialized<DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/IllegalArgumentException.html" title="class or interface in java.lang">IllegalArgumentException</A></CODE> - If one of the given parameters     is invalid</DL></DD></DL><HR><A NAME="release()"><!-- --></A><H3>release</H3><PRE>public abstract void <B>release</B>()</PRE><DL><DD><p> This method shall "reset" the internal state of a PageContext, releasing all internal references, and preparing the PageContext for potential reuse by a later invocation of initialize(). This method is typically called from JspFactory.releasePageContext(). <p> Subclasses shall envelope this method. <p> This method should not be used by page  or tag library authors.<P><DD><DL></DL></DD></DL><HR><A NAME="getSession()"><!-- --></A><H3>getSession</H3><PRE>public abstract <A HREF="../../../javax/servlet/http/HttpSession.html" title="interface in javax.servlet.http">HttpSession</A> <B>getSession</B>()</PRE><DL><DD>The current value of the session object (an HttpSession).<P><DD><DL><DT><B>Returns:</B><DD>the HttpSession for this PageContext or null</DL></DD></DL><HR><A NAME="getPage()"><!-- --></A><H3>getPage</H3><PRE>public abstract <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A> <B>getPage</B>()</PRE><DL><DD>The current value of the page object (In a Servlet environment,  this is an instance of javax.servlet.Servlet).<P><DD><DL><DT><B>Returns:</B><DD>the Page implementation class instance associated      with this PageContext</DL></DD></DL><HR><A NAME="getRequest()"><!-- --></A><H3>getRequest</H3><PRE>public abstract <A HREF="../../../javax/servlet/ServletRequest.html" title="interface in javax.servlet">ServletRequest</A> <B>getRequest</B>()</PRE><DL><DD>The current value of the request object (a ServletRequest).<P><DD><DL><DT><B>Returns:</B><DD>The ServletRequest for this PageContext</DL></DD></DL><HR><A NAME="getResponse()"><!-- --></A><H3>getResponse</H3><PRE>public abstract <A HREF="../../../javax/servlet/ServletResponse.html" title="interface in javax.servlet">ServletResponse</A> <B>getResponse</B>()</PRE><DL><DD>The current value of the response object (a ServletResponse).<P><DD><DL><DT><B>Returns:</B><DD>the ServletResponse for this PageContext</DL></DD></DL><HR><A NAME="getException()"><!-- --></A><H3>getException</H3><PRE>public abstract <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Exception.html" title="class or interface in java.lang">Exception</A> <B>getException</B>()</PRE><DL><DD>The current value of the exception object (an Exception).<P><DD><DL><DT><B>Returns:</B><DD>any exception passed to this as an errorpage</DL></DD></DL><HR><A NAME="getServletConfig()"><!-- --></A><H3>getServletConfig</H3><PRE>public abstract <A HREF="../../../javax/servlet/ServletConfig.html" title="interface in javax.servlet">ServletConfig</A> <B>getServletConfig</B>()</PRE><DL><DD>The ServletConfig instance.<P><DD><DL><DT><B>Returns:</B><DD>the ServletConfig for this PageContext</DL></DD></DL><HR><A NAME="getServletContext()"><!-- --></A><H3>getServletContext</H3><PRE>public abstract <A HREF="../../../javax/servlet/ServletContext.html" title="interface in javax.servlet">ServletContext</A> <B>getServletContext</B>()</PRE><DL><DD>The ServletContext instance.<P><DD><DL><DT><B>Returns:</B><DD>the ServletContext for this PageContext</DL></DD></DL><HR><A NAME="forward(java.lang.String)"><!-- --></A><H3>forward</H3><PRE>public abstract void <B>forward</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;relativeUrlPath)                      throws <A HREF="../../../javax/servlet/ServletException.html" title="class in javax.servlet">ServletException</A>,                             <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></PRE><DL><DD><p> This method is used to re-direct, or "forward" the current  ServletRequest and ServletResponse to another active component in  the application. </p> <p> If the <I> relativeUrlPath </I> begins with a "/" then the URL specified is calculated relative to the DOCROOT of the <code> ServletContext </code> for this JSP. If the path does not begin with a "/" then the URL  specified is calculated relative to the URL of the request that was mapped to the calling JSP.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -