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

📄 actionservlet.html

📁 struts api,学习使用struts必备的文档
💻 HTML
📖 第 1 页 / 共 4 页
字号:
<DD><p>Gracefully release any configDigester instance that we have created.</p><DD><DL>
<DT><B>Since: </B><DD>Struts 1.1</DD>
</DL>
</DD>
</DL>
<HR>

<A NAME="destroyInternal()"><!-- --></A><H3>
destroyInternal</H3>
<PRE>
protected void <B>destroyInternal</B>()</PRE>
<DL>
<DD><p>Gracefully terminate use of the internal MessageResources.</p></DL>
<HR>

<A NAME="getModuleConfig(javax.servlet.http.HttpServletRequest)"><!-- --></A><H3>
getModuleConfig</H3>
<PRE>
protected <A HREF="../../../../org/apache/struts/config/ModuleConfig.html">ModuleConfig</A> <B>getModuleConfig</B>(javax.servlet.http.HttpServletRequest&nbsp;request)</PRE>
<DL>
<DD><p>Return the module configuration object for the currently selected module.</p><DD><DL>
<DT><B>Parameters:</B><DD><CODE>request</CODE> - The servlet request we are processing<DT><B>Since: </B><DD>Struts 1.1</DD>
</DL>
</DD>
</DL>
<HR>

<A NAME="getRequestProcessor(org.apache.struts.config.ModuleConfig)"><!-- --></A><H3>
getRequestProcessor</H3>
<PRE>
protected <A HREF="../../../../org/apache/struts/action/RequestProcessor.html">RequestProcessor</A> <B>getRequestProcessor</B>(<A HREF="../../../../org/apache/struts/config/ModuleConfig.html">ModuleConfig</A>&nbsp;config)                                        throws javax.servlet.ServletException</PRE>
<DL>
<DD><p>Look up and return the <A HREF="../../../../org/apache/struts/action/RequestProcessor.html"><CODE>RequestProcessor</CODE></A> responsible for the specified module, creating a new one if necessary.</p><DD><DL>
<DT><B>Parameters:</B><DD><CODE>config</CODE> - The module configuration for which to  acquire and return a RequestProcessor.<DT><B>Throws:</B><DD><CODE>javax.servlet.ServletException</CODE> - if we cannot instantiate a RequestProcessor  instance<DT><B>Since: </B><DD>Struts 1.1</DD>
</DL>
</DD>
</DL>
<HR>

<A NAME="getProcessorForModule(org.apache.struts.config.ModuleConfig)"><!-- --></A><H3>
getProcessorForModule</H3>
<PRE>
private <A HREF="../../../../org/apache/struts/action/RequestProcessor.html">RequestProcessor</A> <B>getProcessorForModule</B>(<A HREF="../../../../org/apache/struts/config/ModuleConfig.html">ModuleConfig</A>&nbsp;config)</PRE>
<DL>
<DD><p>Returns the RequestProcessor for the given module or null if one does not exist.  This method will not create a RequestProcessor.</p><DD><DL>
<DT><B>Parameters:</B><DD><CODE>config</CODE> - The ModuleConfig.</DL>
</DD>
</DL>
<HR>

<A NAME="initModuleConfigFactory()"><!-- --></A><H3>
initModuleConfigFactory</H3>
<PRE>
protected void <B>initModuleConfigFactory</B>()</PRE>
<DL>
<DD><p>Initialize the factory used to create the module configuration.</p><DD><DL>
<DT><B>Since: </B><DD>Struts 1.2</DD>
</DL>
</DD>
</DL>
<HR>

<A NAME="initModuleConfig(java.lang.String, java.lang.String)"><!-- --></A><H3>
initModuleConfig</H3>
<PRE>
protected <A HREF="../../../../org/apache/struts/config/ModuleConfig.html">ModuleConfig</A> <B>initModuleConfig</B>(java.lang.String&nbsp;prefix,                                        java.lang.String&nbsp;paths)                                 throws javax.servlet.ServletException</PRE>
<DL>
<DD><p>Initialize the module configuration information for the specified module.</p><DD><DL>
<DT><B>Parameters:</B><DD><CODE>prefix</CODE> - Module prefix for this module<DD><CODE>paths</CODE> - Comma-separated list of context-relative resource path(s)  for this modules's configuration resource(s)<DT><B>Throws:</B><DD><CODE>javax.servlet.ServletException</CODE> - if initialization cannot be performed<DT><B>Since: </B><DD>Struts 1.1</DD>
</DL>
</DD>
</DL>
<HR>

<A NAME="parseModuleConfigFile(org.apache.commons.digester.Digester, java.lang.String)"><!-- --></A><H3>
parseModuleConfigFile</H3>
<PRE>
protected void <B>parseModuleConfigFile</B>(org.apache.commons.digester.Digester&nbsp;digester,                                     java.lang.String&nbsp;path)                              throws javax.servlet.UnavailableException</PRE>
<DL>
<DD><p>Parses one module config file.</p><DD><DL>
<DT><B>Parameters:</B><DD><CODE>digester</CODE> - Digester instance that does the parsing<DD><CODE>path</CODE> - The path to the config file to parse.<DT><B>Throws:</B><DD><CODE>javax.servlet.UnavailableException</CODE> - if file cannot be read or parsed<DT><B>Since: </B><DD>Struts 1.2</DD>
</DL>
</DD>
</DL>
<HR>

<A NAME="handleConfigException(java.lang.String, java.lang.Exception)"><!-- --></A><H3>
handleConfigException</H3>
<PRE>
private void <B>handleConfigException</B>(java.lang.String&nbsp;path,                                   java.lang.Exception&nbsp;e)                            throws javax.servlet.UnavailableException</PRE>
<DL>
<DD><p>Simplifies exception handling in the <code>parseModuleConfigFile</code> method.<p><DD><DL>
<DT><B>Parameters:</B><DD><CODE>path</CODE> - &nbsp;<DD><CODE>e</CODE> - &nbsp;<DT><B>Throws:</B><DD><CODE>javax.servlet.UnavailableException</CODE> - as a wrapper around Exception</DL>
</DD>
</DL>
<HR>

<A NAME="initModuleDataSources(org.apache.struts.config.ModuleConfig)"><!-- --></A><H3>
initModuleDataSources</H3>
<PRE>
protected void <B>initModuleDataSources</B>(<A HREF="../../../../org/apache/struts/config/ModuleConfig.html">ModuleConfig</A>&nbsp;config)                              throws javax.servlet.ServletException</PRE>
<DL>
<DD><p>Initialize the data sources for the specified module.</p><DD><DL>
<DT><B>Parameters:</B><DD><CODE>config</CODE> - ModuleConfig information for this module<DT><B>Throws:</B><DD><CODE>javax.servlet.ServletException</CODE> - if initialization cannot be performed<DT><B>Since: </B><DD>Struts 1.1</DD>
</DL>
</DD>
</DL>
<HR>

<A NAME="initModulePlugIns(org.apache.struts.config.ModuleConfig)"><!-- --></A><H3>
initModulePlugIns</H3>
<PRE>
protected void <B>initModulePlugIns</B>(<A HREF="../../../../org/apache/struts/config/ModuleConfig.html">ModuleConfig</A>&nbsp;config)                          throws javax.servlet.ServletException</PRE>
<DL>
<DD><p>Initialize the plug ins for the specified module.</p><DD><DL>
<DT><B>Parameters:</B><DD><CODE>config</CODE> - ModuleConfig information for this module<DT><B>Throws:</B><DD><CODE>javax.servlet.ServletException</CODE> - if initialization cannot be performed<DT><B>Since: </B><DD>Struts 1.1</DD>
</DL>
</DD>
</DL>
<HR>

<A NAME="initModuleMessageResources(org.apache.struts.config.ModuleConfig)"><!-- --></A><H3>
initModuleMessageResources</H3>
<PRE>
protected void <B>initModuleMessageResources</B>(<A HREF="../../../../org/apache/struts/config/ModuleConfig.html">ModuleConfig</A>&nbsp;config)                                   throws javax.servlet.ServletException</PRE>
<DL>
<DD><p>Initialize the application <code>MessageResources</code> for the specified module.</p><DD><DL>
<DT><B>Parameters:</B><DD><CODE>config</CODE> - ModuleConfig information for this module<DT><B>Throws:</B><DD><CODE>javax.servlet.ServletException</CODE> - if initialization cannot be performed<DT><B>Since: </B><DD>Struts 1.1</DD>
</DL>
</DD>
</DL>
<HR>

<A NAME="initConfigDigester()"><!-- --></A><H3>
initConfigDigester</H3>
<PRE>
protected org.apache.commons.digester.Digester <B>initConfigDigester</B>()                                                           throws javax.servlet.ServletException</PRE>
<DL>
<DD><p>Create (if needed) and return a new <code>Digester</code> instance that has been initialized to process Struts module configuration files and configure a corresponding <code>ModuleConfig</code> object (which must be pushed on to the evaluation stack before parsing begins).</p><DD><DL>
<DT><B>Throws:</B><DD><CODE>javax.servlet.ServletException</CODE> - if a Digester cannot be configured<DT><B>Since: </B><DD>Struts 1.1</DD>
</DL>
</DD>
</DL>
<HR>

<A NAME="addRuleSets()"><!-- --></A><H3>
addRuleSets</H3>
<PRE>
private void <B>addRuleSets</B>()                  throws javax.servlet.ServletException</PRE>
<DL>
<DD><p>Add any custom RuleSet instances to configDigester that have been specified in the <code>rulesets</code> init parameter.</p><DD><DL>
<DT><B>Throws:</B><DD><CODE>javax.servlet.ServletException</CODE> - &nbsp;</DL>
</DD>
</DL>
<HR>

<A NAME="isValidating()"><!-- --></A><H3>
isValidating</H3>
<PRE>
private boolean <B>isValidating</B>()</PRE>
<DL>
<DD><p>Check the status of the <code>validating</code> initialization parameter.</p><DD><DL>
<DT><B>Returns:</B><DD>true if the module Digester should validate.</DL>
</DD>
</DL>
<HR>

<A NAME="initInternal()"><!-- --></A><H3>
initInternal</H3>
<PRE>
protected void <B>initInternal</B>()                     throws javax.servlet.ServletException</PRE>
<DL>
<DD><p>Initialize our internal MessageResources bundle.</p><DD><DL>
<DT><B>Throws:</B><DD><CODE>javax.servlet.ServletException</CODE> - if we cannot initialize these resources</DL>
</DD>
</DL>
<HR>

<A NAME="initOther()"><!-- --></A><H3>
initOther</H3>
<PRE>
protected void <B>initOther</B>()                  throws javax.servlet.ServletException</PRE>
<DL>
<DD><p>Initialize other global characteristics of the controller servlet.</p><DD><DL>
<DT><B>Throws:</B><DD><CODE>javax.servlet.ServletException</CODE> - if we cannot initialize these resources</DL>
</DD>
</DL>
<HR>

<A NAME="initServlet()"><!-- --></A><H3>
initServlet</H3>
<PRE>
protected void <B>initServlet</B>()                    throws javax.servlet.ServletException</PRE>
<DL>
<DD><p>Initialize the servlet mapping under which our controller servlet is being accessed.  This will be used in the <code>&html:form&gt;</code> tag to generate correct destination URLs for form submissions.</p><DD><DL>
<DT><B>Throws:</B><DD><CODE>javax.servlet.ServletException</CODE> - if error happens while scanning web.xml</DL>
</DD>
</DL>
<HR>

<A NAME="process(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)"><!-- --></A><H3>
process</H3>
<PRE>
protected void <B>process</B>(javax.servlet.http.HttpServletRequest&nbsp;request,                       javax.servlet.http.HttpServletResponse&nbsp;response)                throws java.io.IOException,                       javax.servlet.ServletException</PRE>
<DL>
<DD><p>Perform the standard request processing for this request, and create the corresponding response.</p><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 is thrown</DL>
</DD>
</DL>
<!-- ========= END OF CLASS DATA ========= -->
<HR>

<!-- ========== START OF NAVBAR ========== -->
<A NAME="navbar_bottom"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">
  <TR ALIGN="center" VALIGN="top">
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/ActionServlet.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  </TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>

<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;<A HREF="../../../../org/apache/struts/action/ActionRedirect.html"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../../../org/apache/struts/action/ActionServletWrapper.html"><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>  &nbsp;
&nbsp;<A HREF="ActionServlet.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  SUMMARY: &nbsp;INNER&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL: &nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<!-- =========== END OF NAVBAR =========== -->

<HR>
Copyright 

⌨️ 快捷键说明

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