facesservlet.html
来自「j2ee帮助文档软件设计/软件工程 文件格式」· HTML 代码 · 共 469 行 · 第 1/2 页
HTML
469 行
<DD><p>Context initialization parameter name for a comma delimited list of context-relative resource paths (in addition to <code>/WEB-INF/faces-config.xml</code> which is loaded automatically if it exists) containing JavaServer Faces configuration information.</p><P><DL><DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#javax.faces.webapp.FacesServlet.CONFIG_FILES_ATTR">Constant Field Values</A></DL></DL><HR><A NAME="LIFECYCLE_ID_ATTR"><!-- --></A><H3>LIFECYCLE_ID_ATTR</H3><PRE>public static final <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>LIFECYCLE_ID_ATTR</B></PRE><DL><DD><p>Context initialization parameter name for the lifecycle identifier of the <A HREF="../../../javax/faces/lifecycle/Lifecycle.html" title="class in javax.faces.lifecycle"><CODE>Lifecycle</CODE></A> instance to be utilized.</p><P><DL><DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#javax.faces.webapp.FacesServlet.LIFECYCLE_ID_ATTR">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"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TH></TR></TABLE><A NAME="FacesServlet()"><!-- --></A><H3>FacesServlet</H3><PRE>public <B>FacesServlet</B>()</PRE><DL></DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Method Detail</B></FONT></TH></TR></TABLE><A NAME="destroy()"><!-- --></A><H3>destroy</H3><PRE>public void <B>destroy</B>()</PRE><DL><DD><p>Release all resources acquired at startup time.</p><P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../javax/servlet/Servlet.html#destroy()">destroy</A></CODE> in interface <CODE><A HREF="../../../javax/servlet/Servlet.html" title="interface in javax.servlet">Servlet</A></CODE></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="getServletConfig()"><!-- --></A><H3>getServletConfig</H3><PRE>public <A HREF="../../../javax/servlet/ServletConfig.html" title="interface in javax.servlet">ServletConfig</A> <B>getServletConfig</B>()</PRE><DL><DD><p>Return the <code>ServletConfig</code> instance for this servlet.</p><P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../javax/servlet/Servlet.html#getServletConfig()">getServletConfig</A></CODE> in interface <CODE><A HREF="../../../javax/servlet/Servlet.html" title="interface in javax.servlet">Servlet</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the <code>ServletConfig</code> object that initializes this servlet<DT><B>See Also:</B><DD><A HREF="../../../javax/servlet/Servlet.html#init(javax.servlet.ServletConfig)"><CODE>Servlet.init(javax.servlet.ServletConfig)</CODE></A></DL></DD></DL><HR><A NAME="getServletInfo()"><!-- --></A><H3>getServletInfo</H3><PRE>public <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>getServletInfo</B>()</PRE><DL><DD><p>Return information about this Servlet.</p><P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../javax/servlet/Servlet.html#getServletInfo()">getServletInfo</A></CODE> in interface <CODE><A HREF="../../../javax/servlet/Servlet.html" title="interface in javax.servlet">Servlet</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>a <code>String</code> containing servlet information</DL></DD></DL><HR><A NAME="init(javax.servlet.ServletConfig)"><!-- --></A><H3>init</H3><PRE>public void <B>init</B>(<A HREF="../../../javax/servlet/ServletConfig.html" title="interface in javax.servlet">ServletConfig</A> servletConfig) throws <A HREF="../../../javax/servlet/ServletException.html" title="class in javax.servlet">ServletException</A></PRE><DL><DD><p>Acquire the factory instances we will require.</p><P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../javax/servlet/Servlet.html#init(javax.servlet.ServletConfig)">init</A></CODE> in interface <CODE><A HREF="../../../javax/servlet/Servlet.html" title="interface in javax.servlet">Servlet</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>servletConfig</CODE> - a <code>ServletConfig</code> object containing the servlet's configuration and initialization parameters<DT><B>Throws:</B><DD><CODE><A HREF="../../../javax/servlet/ServletException.html" title="class in javax.servlet">ServletException</A></CODE> - if, for any reason, the startup of this Faces application failed. This includes errors in the config file that is parsed before or during the processing of this <code>init()</code> method.<DT><B>See Also:</B><DD><A HREF="../../../javax/servlet/UnavailableException.html" title="class in javax.servlet"><CODE>UnavailableException</CODE></A>, <A HREF="../../../javax/servlet/Servlet.html#getServletConfig()"><CODE>Servlet.getServletConfig()</CODE></A></DL></DD></DL><HR><A NAME="service(javax.servlet.ServletRequest, javax.servlet.ServletResponse)"><!-- --></A><H3>service</H3><PRE>public void <B>service</B>(<A HREF="../../../javax/servlet/ServletRequest.html" title="interface in javax.servlet">ServletRequest</A> request, <A HREF="../../../javax/servlet/ServletResponse.html" title="interface in javax.servlet">ServletResponse</A> response) throws <A HREF="http://java.sun.com/j2se/1.5/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A>, <A HREF="../../../javax/servlet/ServletException.html" title="class in javax.servlet">ServletException</A></PRE><DL><DD><p>Process an incoming request, and create the corresponding response, by executing the request processing lifecycle.</p> <p>If the <code>request</code> and <code>response</code> arguments to this method are not instances of <code>HttpServletRequest</code> and <code>HttpServletResponse</code>, respectively, the results of invoking this method are undefined.</p> <p>This method must respond to requests that start with the following strings by invoking the <code>sendError</code> method on the response argument (cast to <code>HttpServletResponse</code>), passing the code <code>HttpServletResponse.SC_NOT_FOUND</code> as the argument. </p> <ul><pre><code>/WEB-INF//WEB-INF/META-INF//META-INF</code></pre> </ul><P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../javax/servlet/Servlet.html#service(javax.servlet.ServletRequest, javax.servlet.ServletResponse)">service</A></CODE> in interface <CODE><A HREF="../../../javax/servlet/Servlet.html" title="interface in javax.servlet">Servlet</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>request</CODE> - The servlet request we are processing<DD><CODE>response</CODE> - The servlet response we are creating<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.5/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></CODE> - if an input/output error occurs during processing<DD><CODE><A HREF="../../../javax/servlet/ServletException.html" title="class in javax.servlet">ServletException</A></CODE> - if a servlet error occurs during processing</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/faces/webapp/ConverterTag.html" title="class in javax.faces.webapp"><B>PREV CLASS</B></A> <A HREF="../../../javax/faces/webapp/FacetTag.html" title="class in javax.faces.webapp"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../index.html?javax/faces/webapp/FacesServlet.html" target="_top"><B>FRAMES</B></A> <A HREF="FacesServlet.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"><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 + =
减小字号Ctrl + -
显示快捷键?