📄 config.html
字号:
<DT><B>Parameters:</B><DD><CODE>context</CODE> - Servlet context in which the configuration variable is to be looked up<DD><CODE>name</CODE> - Configuration variable name<DT><B>Returns:</B><DD>The <tt>java.lang.Object</tt> associated with the configuration variable, or null if it is not defined.</DL></DD></DL><HR><A NAME="set(javax.servlet.jsp.PageContext, java.lang.String, java.lang.Object, int)"><!-- --></A><H3>set</H3><PRE>public static void <B>set</B>(javax.servlet.jsp.PageContext pc, java.lang.String name, java.lang.Object value, int scope)</PRE><DL><DD>Sets the value of a configuration variable in the given scope. <p> Setting the value of a configuration variable is performed as if each scope had its own namespace, that is, the same configuration variable name in one scope does not replace one stored in a different scope.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>pc</CODE> - Page context in which the configuration variable is to be set<DD><CODE>name</CODE> - Configuration variable name<DD><CODE>value</CODE> - Configuration variable value<DD><CODE>scope</CODE> - Scope in which the configuration variable is to be set</DL></DD></DL><HR><A NAME="set(javax.servlet.ServletRequest, java.lang.String, java.lang.Object)"><!-- --></A><H3>set</H3><PRE>public static void <B>set</B>(javax.servlet.ServletRequest request, java.lang.String name, java.lang.Object value)</PRE><DL><DD>Sets the value of a configuration variable in the "request" scope. <p> Setting the value of a configuration variable is performed as if each scope had its own namespace, that is, the same configuration variable name in one scope does not replace one stored in a different scope.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>request</CODE> - Request object in which the configuration variable is to be set<DD><CODE>name</CODE> - Configuration variable name<DD><CODE>value</CODE> - Configuration variable value</DL></DD></DL><HR><A NAME="set(javax.servlet.http.HttpSession, java.lang.String, java.lang.Object)"><!-- --></A><H3>set</H3><PRE>public static void <B>set</B>(javax.servlet.http.HttpSession session, java.lang.String name, java.lang.Object value)</PRE><DL><DD>Sets the value of a configuration variable in the "session" scope. <p> Setting the value of a configuration variable is performed as if each scope had its own namespace, that is, the same configuration variable name in one scope does not replace one stored in a different scope.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>session</CODE> - Session object in which the configuration variable is to be set<DD><CODE>name</CODE> - Configuration variable name<DD><CODE>value</CODE> - Configuration variable value</DL></DD></DL><HR><A NAME="set(javax.servlet.ServletContext, java.lang.String, java.lang.Object)"><!-- --></A><H3>set</H3><PRE>public static void <B>set</B>(javax.servlet.ServletContext context, java.lang.String name, java.lang.Object value)</PRE><DL><DD>Sets the value of a configuration variable in the "application" scope. <p> Setting the value of a configuration variable is performed as if each scope had its own namespace, that is, the same configuration variable name in one scope does not replace one stored in a different scope.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>context</CODE> - Servlet context in which the configuration variable is to be set<DD><CODE>name</CODE> - Configuration variable name<DD><CODE>value</CODE> - Configuration variable value</DL></DD></DL><HR><A NAME="remove(javax.servlet.jsp.PageContext, java.lang.String, int)"><!-- --></A><H3>remove</H3><PRE>public static void <B>remove</B>(javax.servlet.jsp.PageContext pc, java.lang.String name, int scope)</PRE><DL><DD>Removes a configuration variable from the given scope. <p> Removing a configuration variable is performed as if each scope had its own namespace, that is, the same configuration variable name in one scope does not impact one stored in a different scope.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>pc</CODE> - Page context from which the configuration variable is to be removed<DD><CODE>name</CODE> - Configuration variable name<DD><CODE>scope</CODE> - Scope from which the configuration variable is to be removed</DL></DD></DL><HR><A NAME="remove(javax.servlet.ServletRequest, java.lang.String)"><!-- --></A><H3>remove</H3><PRE>public static void <B>remove</B>(javax.servlet.ServletRequest request, java.lang.String name)</PRE><DL><DD>Removes a configuration variable from the "request" scope. <p> Removing a configuration variable is performed as if each scope had its own namespace, that is, the same configuration variable name in one scope does not impact one stored in a different scope.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>request</CODE> - Request object from which the configuration variable is to be removed<DD><CODE>name</CODE> - Configuration variable name</DL></DD></DL><HR><A NAME="remove(javax.servlet.http.HttpSession, java.lang.String)"><!-- --></A><H3>remove</H3><PRE>public static void <B>remove</B>(javax.servlet.http.HttpSession session, java.lang.String name)</PRE><DL><DD>Removes a configuration variable from the "session" scope. <p> Removing a configuration variable is performed as if each scope had its own namespace, that is, the same configuration variable name in one scope does not impact one stored in a different scope.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>session</CODE> - Session object from which the configuration variable is to be removed<DD><CODE>name</CODE> - Configuration variable name</DL></DD></DL><HR><A NAME="remove(javax.servlet.ServletContext, java.lang.String)"><!-- --></A><H3>remove</H3><PRE>public static void <B>remove</B>(javax.servlet.ServletContext context, java.lang.String name)</PRE><DL><DD>Removes a configuration variable from the "application" scope. <p> Removing a configuration variable is performed as if each scope had its own namespace, that is, the same configuration variable name in one scope does not impact one stored in a different scope.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>context</CODE> - Servlet context from which the configuration variable is to be removed<DD><CODE>name</CODE> - Configuration variable name</DL></DD></DL><HR><A NAME="find(javax.servlet.jsp.PageContext, java.lang.String)"><!-- --></A><H3>find</H3><PRE>public static java.lang.Object <B>find</B>(javax.servlet.jsp.PageContext pc, java.lang.String name)</PRE><DL><DD>Finds the value associated with a specific configuration setting identified by its context initialization parameter name. <p> For each of the JSP scopes (page, request, session, application), get the value of the configuration variable identified by <tt>name</tt> using method <tt>get()</tt>. Return as soon as a non-null value is found. If no value is found, get the value of the context initialization parameter identified by <tt>name</tt>.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>pc</CODE> - Page context in which the configuration setting is to be searched<DD><CODE>name</CODE> - Context initialization parameter name of the configuration setting<DT><B>Returns:</B><DD>The <tt>java.lang.Object</tt> associated with the configuration setting identified by <tt>name</tt>, or null if it is not defined.</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=3 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/jstl/core/ConditionalTagSupport.html" title="class in javax.servlet.jsp.jstl.core"><B>PREV CLASS</B></A> <A HREF="../../../../../javax/servlet/jsp/jstl/core/LoopTagSupport.html" title="class in javax.servlet.jsp.jstl.core"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../../index.html" target="_top"><B>FRAMES</B></A> <A HREF="Config.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 | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: <A HREF="#field_detail">FIELD</A> | <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">Copyright 2003 Sun Microsystems, Inc. All Rights Reserved.</font></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -