📄 actionservlet.html
字号:
</TR>
</TABLE>
<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TD><B>Methods inherited from class java.lang.Object</B></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait</CODE></TD>
</TR>
</TABLE>
<P>
<!-- ============ FIELD DETAIL =========== -->
<A NAME="field_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=1><FONT SIZE="+2">
<B>Field Detail</B></FONT></TD>
</TR>
</TABLE>
<A NAME="config"><!-- --></A><H3>
config</H3>
<PRE>
protected java.lang.String <B>config</B></PRE>
<DL>
<DD><p>Comma-separated list of context-relative path(s) to our configuration resource(s) for the default module.</p></DL>
<HR>
<A NAME="configDigester"><!-- --></A><H3>
configDigester</H3>
<PRE>
protected org.apache.commons.digester.Digester <B>configDigester</B></PRE>
<DL>
<DD><p>The Digester used to produce ModuleConfig objects from a Struts configuration file.</p><DD><DL>
<DT><B>Since: </B><DD>Struts 1.1</DD>
</DL>
</DD>
</DL>
<HR>
<A NAME="convertNull"><!-- --></A><H3>
convertNull</H3>
<PRE>
protected boolean <B>convertNull</B></PRE>
<DL>
<DD><p>The flag to request backwards-compatible conversions for form bean properties of the Java wrapper class types.</p><DD><DL>
<DT><B>Since: </B><DD>Struts 1.1</DD>
</DL>
</DD>
</DL>
<HR>
<A NAME="dataSources"><!-- --></A><H3>
dataSources</H3>
<PRE>
protected org.apache.commons.collections.FastHashMap <B>dataSources</B></PRE>
<DL>
<DD><p>The JDBC data sources that has been configured for this module, if any, keyed by the servlet context attribute under which they are stored.</p></DL>
<HR>
<A NAME="internal"><!-- --></A><H3>
internal</H3>
<PRE>
protected <A HREF="../../../../org/apache/struts/util/MessageResources.html">MessageResources</A> <B>internal</B></PRE>
<DL>
<DD><p>The resources object for our internal resources.</p></DL>
<HR>
<A NAME="internalName"><!-- --></A><H3>
internalName</H3>
<PRE>
protected java.lang.String <B>internalName</B></PRE>
<DL>
<DD><p>The Java base name of our internal resources.</p><DD><DL>
<DT><B>Since: </B><DD>Struts 1.1</DD>
</DL>
</DD>
</DL>
<HR>
<A NAME="log"><!-- --></A><H3>
log</H3>
<PRE>
protected static org.apache.commons.logging.Log <B>log</B></PRE>
<DL>
<DD><p>Commons Logging instance.</p><DD><DL>
<DT><B>Since: </B><DD>Struts 1.1</DD>
</DL>
</DD>
</DL>
<HR>
<A NAME="processor"><!-- --></A><H3>
processor</H3>
<PRE>
protected <A HREF="../../../../org/apache/struts/action/RequestProcessor.html">RequestProcessor</A> <B>processor</B></PRE>
<DL>
<DD><p>The <code>RequestProcessor</code> instance we will use to process all incoming requests.</p><DD><DL>
<DT><B>Since: </B><DD>Struts 1.1</DD>
</DL>
</DD>
</DL>
<HR>
<A NAME="registrations"><!-- --></A><H3>
registrations</H3>
<PRE>
protected java.lang.String[] <B>registrations</B></PRE>
<DL>
<DD><p>The set of public identifiers, and corresponding resource names, for the versions of the configuration file DTDs that we know about. There <strong>MUST</strong> be an even number of Strings in this list!</p></DL>
<HR>
<A NAME="servletMapping"><!-- --></A><H3>
servletMapping</H3>
<PRE>
protected java.lang.String <B>servletMapping</B></PRE>
<DL>
<DD><p>The URL pattern to which we are mapped in our web application deployment descriptor.</p></DL>
<HR>
<A NAME="servletName"><!-- --></A><H3>
servletName</H3>
<PRE>
protected java.lang.String <B>servletName</B></PRE>
<DL>
<DD><p>The servlet name under which we are registered in our web application deployment descriptor.</p></DL>
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=1><FONT SIZE="+2">
<B>Constructor Detail</B></FONT></TD>
</TR>
</TABLE>
<A NAME="ActionServlet()"><!-- --></A><H3>
ActionServlet</H3>
<PRE>
public <B>ActionServlet</B>()</PRE>
<DL>
</DL>
<!-- ============ METHOD DETAIL ========== -->
<A NAME="method_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=1><FONT SIZE="+2">
<B>Method Detail</B></FONT></TD>
</TR>
</TABLE>
<A NAME="destroy()"><!-- --></A><H3>
destroy</H3>
<PRE>
public void <B>destroy</B>()</PRE>
<DL>
<DD><p>Gracefully shut down this controller servlet, releasing any resources that were allocated at initialization.</p><DD><DL>
<DT><B>Overrides:</B><DD><CODE>destroy</CODE> in class <CODE>javax.servlet.GenericServlet</CODE></DL>
</DD>
</DL>
<HR>
<A NAME="init()"><!-- --></A><H3>
init</H3>
<PRE>
public void <B>init</B>() throws javax.servlet.ServletException</PRE>
<DL>
<DD><p>Initialize this servlet. Most of the processing has been factored into support methods so that you can override particular functionality at a fairly granular level.</p><DD><DL>
<DT><B>Overrides:</B><DD><CODE>init</CODE> in class <CODE>javax.servlet.GenericServlet</CODE></DL>
</DD>
<DD><DL>
<DT><B>Throws:</B><DD><CODE>javax.servlet.ServletException</CODE> - if we cannot configure ourselves correctly</DL>
</DD>
</DL>
<HR>
<A NAME="initModulePrefixes(javax.servlet.ServletContext)"><!-- --></A><H3>
initModulePrefixes</H3>
<PRE>
protected void <B>initModulePrefixes</B>(javax.servlet.ServletContext context)</PRE>
<DL>
<DD><p>Saves a String[] of module prefixes in the ServletContext under Globals.MODULE_PREFIXES_KEY. <strong>NOTE</strong> - the "" prefix for the default module is not included in this list.</p><DD><DL>
<DT><B>Parameters:</B><DD><CODE>context</CODE> - The servlet context.<DT><B>Since: </B><DD>Struts 1.2</DD>
</DL>
</DD>
</DL>
<HR>
<A NAME="doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)"><!-- --></A><H3>
doGet</H3>
<PRE>
public void <B>doGet</B>(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.io.IOException, javax.servlet.ServletException</PRE>
<DL>
<DD><p>Process an HTTP "GET" request.</p><DD><DL>
<DT><B>Overrides:</B><DD><CODE>doGet</CODE> in class <CODE>javax.servlet.http.HttpServlet</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>java.io.IOException</CODE> - if an input/output error occurs<DD><CODE>javax.servlet.ServletException</CODE> - if a servlet exception occurs</DL>
</DD>
</DL>
<HR>
<A NAME="doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)"><!-- --></A><H3>
doPost</H3>
<PRE>
public void <B>doPost</B>(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.io.IOException, javax.servlet.ServletException</PRE>
<DL>
<DD><p>Process an HTTP "POST" request.</p><DD><DL>
<DT><B>Overrides:</B><DD><CODE>doPost</CODE> in class <CODE>javax.servlet.http.HttpServlet</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>java.io.IOException</CODE> - if an input/output error occurs<DD><CODE>javax.servlet.ServletException</CODE> - if a servlet exception occurs</DL>
</DD>
</DL>
<HR>
<A NAME="addServletMapping(java.lang.String, java.lang.String)"><!-- --></A><H3>
addServletMapping</H3>
<PRE>
public void <B>addServletMapping</B>(java.lang.String servletName, java.lang.String urlPattern)</PRE>
<DL>
<DD><p>Remember a servlet mapping from our web application deployment descriptor, if it is for this servlet.</p><DD><DL>
<DT><B>Parameters:</B><DD><CODE>servletName</CODE> - The name of the servlet being mapped<DD><CODE>urlPattern</CODE> - The URL pattern to which this servlet is mapped</DL>
</DD>
</DL>
<HR>
<A NAME="getInternal()"><!-- --></A><H3>
getInternal</H3>
<PRE>
public <A HREF="../../../../org/apache/struts/util/MessageResources.html">MessageResources</A> <B>getInternal</B>()</PRE>
<DL>
<DD><p>Return the <code>MessageResources</code> instance containing our internal message strings.</p><DD><DL>
<DT><B>Since: </B><DD>Struts 1.1</DD>
</DL>
</DD>
</DL>
<HR>
<A NAME="destroyModules()"><!-- --></A><H3>
destroyModules</H3>
<PRE>
protected void <B>destroyModules</B>()</PRE>
<DL>
<DD><p>Gracefully terminate use of any modules associated with this application (if any).</p><DD><DL>
<DT><B>Since: </B><DD>Struts 1.1</DD>
</DL>
</DD>
</DL>
<HR>
<A NAME="destroyConfigDigester()"><!-- --></A><H3>
destroyConfigDigester</H3>
<PRE>
protected void <B>destroyConfigDigester</B>()</PRE>
<DL>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -