📄 jspcontext.html
字号:
<DL><DD>Remove the object reference associated with the specified name in the given scope. Does nothing if there is no such object.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - The name of the object to remove.<DD><CODE>scope</CODE> - The scope where to look.<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/IllegalArgumentException.html" title="class or interface in java.lang">IllegalArgumentException</A></CODE> - if the scope is invalid<DD><CODE><A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/IllegalStateException.html" title="class or interface in java.lang">IllegalStateException</A></CODE> - if the scope is PageContext.SESSION_SCOPE but the page that was requested does not participate in a session or the session has been invalidated.<DD><CODE><A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/NullPointerException.html" title="class or interface in java.lang">NullPointerException</A></CODE> - if the name is null</DL></DD></DL><HR><A NAME="getAttributesScope(java.lang.String)"><!-- --></A><H3>getAttributesScope</H3><PRE>public abstract int <B>getAttributesScope</B>(<A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> name)</PRE><DL><DD>Get the scope where a given attribute is defined.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - the name of the attribute to return the scope for<DT><B>Returns:</B><DD>the scope of the object associated with the name specified or 0<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/NullPointerException.html" title="class or interface in java.lang">NullPointerException</A></CODE> - if the name is null</DL></DD></DL><HR><A NAME="getAttributeNamesInScope(int)"><!-- --></A><H3>getAttributeNamesInScope</H3><PRE>public abstract <A HREF="http://java.sun.com/j2se/1.5/docs/api/java/util/Enumeration.html" title="class or interface in java.util">Enumeration</A><<A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>> <B>getAttributeNamesInScope</B>(int scope)</PRE><DL><DD>Enumerate all the attributes in a given scope.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>scope</CODE> - the scope to enumerate all the attributes for<DT><B>Returns:</B><DD>an enumeration of names (java.lang.String) of all the attributes the specified scope<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/IllegalArgumentException.html" title="class or interface in java.lang">IllegalArgumentException</A></CODE> - if the scope is invalid<DD><CODE><A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/IllegalStateException.html" title="class or interface in java.lang">IllegalStateException</A></CODE> - if the scope is PageContext.SESSION_SCOPE but the page that was requested does not participate in a session or the session has been invalidated.</DL></DD></DL><HR><A NAME="getOut()"><!-- --></A><H3>getOut</H3><PRE>public abstract <A HREF="../../../javax/servlet/jsp/JspWriter.html" title="class in javax.servlet.jsp">JspWriter</A> <B>getOut</B>()</PRE><DL><DD>The current value of the out object (a JspWriter).<P><DD><DL><DT><B>Returns:</B><DD>the current JspWriter stream being used for client response</DL></DD></DL><HR><A NAME="getExpressionEvaluator()"><!-- --></A><H3>getExpressionEvaluator</H3><PRE>public abstract <A HREF="../../../javax/servlet/jsp/el/ExpressionEvaluator.html" title="class in javax.servlet.jsp.el">ExpressionEvaluator</A> <B>getExpressionEvaluator</B>()</PRE><DL><DD><B>Deprecated.</B> <I>As of JSP 2.1, replaced by <A HREF="../../../javax/servlet/jsp/JspApplicationContext.html#getExpressionFactory()"><CODE>JspApplicationContext.getExpressionFactory()</CODE></A></I><P><DD>Provides programmatic access to the ExpressionEvaluator. The JSP Container must return a valid instance of an ExpressionEvaluator that can parse EL expressions.<P><DD><DL><DT><B>Returns:</B><DD>A valid instance of an ExpressionEvaluator.<DT><B>Since:</B></DT> <DD>JSP 2.0</DD></DL></DD></DL><HR><A NAME="getVariableResolver()"><!-- --></A><H3>getVariableResolver</H3><PRE>public abstract <A HREF="../../../javax/servlet/jsp/el/VariableResolver.html" title="interface in javax.servlet.jsp.el">VariableResolver</A> <B>getVariableResolver</B>()</PRE><DL><DD><B>Deprecated.</B> <I>As of JSP 2.1, replaced by <A HREF="../../../javax/el/ELContext.html#getELResolver()"><CODE>ELContext.getELResolver()</CODE></A>, which can be obtained by <code>jspContext.getELContext().getELResolver()</code>.</I><P><DD>Returns an instance of a VariableResolver that provides access to the implicit objects specified in the JSP specification using this JspContext as the context object.<P><DD><DL><DT><B>Returns:</B><DD>A valid instance of a VariableResolver.<DT><B>Since:</B></DT> <DD>JSP 2.0</DD></DL></DD></DL><HR><A NAME="getELContext()"><!-- --></A><H3>getELContext</H3><PRE>public abstract <A HREF="../../../javax/el/ELContext.html" title="class in javax.el">ELContext</A> <B>getELContext</B>()</PRE><DL><DD>Returns the <code>ELContext</code> associated with this <code>JspContext</code>. <p>The <code>ELContext</code> is created lazily and is reused if it already exists. There is a new <code>ELContext</code> for each <code>JspContext</code>.</p> <p>The <code>ELContext</code> must contain the <code>ELResolver</code> described in the JSP specification (and in the javadocs for <A HREF="../../../javax/servlet/jsp/JspApplicationContext.html#addELResolver(javax.el.ELResolver)"><CODE>JspApplicationContext.addELResolver(javax.el.ELResolver)</CODE></A>).</p><P><DD><DL><DT><B>Returns:</B><DD>The <code>ELContext</code> associated with this <code>JspContext</code>.<DT><B>Since:</B></DT> <DD>JSP 2.1</DD></DL></DD></DL><HR><A NAME="pushBody(java.io.Writer)"><!-- --></A><H3>pushBody</H3><PRE>public <A HREF="../../../javax/servlet/jsp/JspWriter.html" title="class in javax.servlet.jsp">JspWriter</A> <B>pushBody</B>(<A HREF="http://java.sun.com/j2se/1.5/docs/api/java/io/Writer.html" title="class or interface in java.io">Writer</A> writer)</PRE><DL><DD>Return a new JspWriter object that sends output to the provided Writer. Saves the current "out" JspWriter, and updates the value of the "out" attribute in the page scope attribute namespace of the JspContext. <p>The returned JspWriter must implement all methods and behave as though it were unbuffered. More specifically: <ul> <li>clear() must throw an IOException</li> <li>clearBuffer() does nothing</li> <li>getBufferSize() always returns 0</li> <li>getRemaining() always returns 0</li> </ul> </p><P><DD><DL><DT><B>Parameters:</B><DD><CODE>writer</CODE> - The Writer for the returned JspWriter to send output to.<DT><B>Returns:</B><DD>a new JspWriter that writes to the given Writer.<DT><B>Since:</B></DT> <DD>JSP 2.0</DD></DL></DD></DL><HR><A NAME="popBody()"><!-- --></A><H3>popBody</H3><PRE>public <A HREF="../../../javax/servlet/jsp/JspWriter.html" title="class in javax.servlet.jsp">JspWriter</A> <B>popBody</B>()</PRE><DL><DD>Return the previous JspWriter "out" saved by the matching pushBody(), and update the value of the "out" attribute in the page scope attribute namespace of the JspContext.<P><DD><DL><DT><B>Returns:</B><DD>the saved JspWriter.</DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ======= START OF BOTTOM NAVBAR ====== --><A NAME="navbar_bottom"><!-- --></A><A HREF="#skip-navbar_bottom" title="Skip navigation links"></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../javax/servlet/jsp/JspApplicationContext.html" title="interface in javax.servlet.jsp"><B>PREV CLASS</B></A> <A HREF="../../../javax/servlet/jsp/JspEngineInfo.html" title="class in javax.servlet.jsp"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../index.html?javax/servlet/jsp/JspContext.html" target="_top"><B>FRAMES</B></A> <A HREF="JspContext.html" target="_top"><B>NO FRAMES</B></A> <SCRIPT type="text/javascript"> <!-- if(window==top) { document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>'); } //--></SCRIPT><NOSCRIPT> <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A></NOSCRIPT></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= --><HR><font size="-1"><a href="http://java.sun.com/webapps/bugreport">Submit a bug or feature</a> <p>Copyright 2007 Sun Microsystems, Inc. All rights reserved. Use is subject to <a href="../legal/license.html" target="_top">license terms.</a></font></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -