| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN""http://www.w3.org/TR/REC-html40/loose.dtd"> |
| <!--NewPage--> |
| <HTML> |
| <HEAD> |
| <!-- Generated by javadoc on Fri Aug 22 03:44:10 EDT 2003 --> |
| <TITLE> |
| ActionServlet (Apache Struts API Documentation) |
| </TITLE> |
| <META NAME="keywords" CONTENT="org.apache.struts.action.ActionServlet,ActionServlet class"> |
| <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style"> |
| </HEAD> |
| <SCRIPT> |
| function asd() |
| { |
| parent.document.title="ActionServlet (Apache Struts API Documentation)"; |
| } |
| </SCRIPT> |
| <BODY BGCOLOR="white" onload="asd();"> |
| |
| <!-- ========== START OF NAVBAR ========== --> |
| <A NAME="navbar_top"><!-- --></A> |
| <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"> |
| <TR> |
| <TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> |
| <A NAME="navbar_top_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> </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="class-use/ActionServlet.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </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="../../../../org/apache/struts/action/ActionMessages.ActionMessageItem.html"><B>PREV CLASS</B></A> |
| <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> |
| <A HREF="ActionServlet.html" TARGET="_top"><B>NO FRAMES</B></A> |
| |
| <SCRIPT> |
| <!-- |
| if(window==top) { |
| document.writeln('<A HREF="../../../../allclasses-noframe.html" TARGET=""><B>All Classes</B></A>'); |
| } |
| //--> |
| </SCRIPT> |
| <NOSCRIPT> |
| <A HREF="../../../../allclasses-noframe.html" TARGET=""><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> |
| <!-- =========== END OF NAVBAR =========== --> |
| |
| <HR> |
| <!-- ======== START OF CLASS DATA ======== --> |
| <H2> |
| <FONT SIZE="-1"> |
| org.apache.struts.action</FONT> |
| <BR> |
| Class ActionServlet</H2> |
| <PRE> |
| java.lang.Object |
| | |
| +--javax.servlet.GenericServlet |
| | |
| +--javax.servlet.http.HttpServlet |
| | |
| +--<B>org.apache.struts.action.ActionServlet</B> |
| </PRE> |
| <DL> |
| <DT><B>All Implemented Interfaces:</B> <DD>java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig</DD> |
| </DL> |
| <DL> |
| <DT><B>Direct Known Subclasses:</B> <DD><A HREF="../../../../org/apache/struts/tiles/ActionComponentServlet.html">ActionComponentServlet</A></DD> |
| </DL> |
| <HR> |
| <DL> |
| <DT>public class <B>ActionServlet</B><DT>extends javax.servlet.http.HttpServlet</DL> |
| |
| <P> |
| <p><strong>ActionServlet</strong> represents the "controller" in the |
| Model-View-Controller (MVC) design pattern for web applications that is |
| commonly known as "Model 2". This nomenclature originated with a |
| description in the JavaServerPages Specification, version 0.92, and has |
| persisted ever since (in the absence of a better name).</p> |
| |
| <p>Generally, a "Model 2" application is architected as follows:</p> |
| <ul> |
| <li>The user interface will generally be created with JSP pages, which |
| will not themselves contain any business logic. These pages represent |
| the "view" component of an MVC architecture.</li> |
| <li>Forms and hyperlinks in the user interface that require business logic |
| to be executed will be submitted to a request URI that is mapped to the |
| controller servlet.</li> |
| <li>There will be <b>one</b> instance of this servlet class, |
| which receives and processes all requests that change the state of |
| a user's interaction with the application. This component represents |
| the "controller" component of an MVC architecture.</li> |
| <li>The controller servlet will select and invoke an action class to perform |
| the requested business logic.</li> |
| <li>The action classes will manipulate the state of the application's |
| interaction with the user, typically by creating or modifying JavaBeans |
| that are stored as request or session attributes (depending on how long |
| they need to be available). Such JavaBeans represent the "model" |
| component of an MVC architecture.</li> |
| <li>Instead of producing the next page of the user interface directly, |
| action classes will generally use the |
| <code>RequestDispatcher.forward()</code> facility of the servlet API |
| to pass control to an appropriate JSP page to produce the next page |
| of the user interface.</li> |
| </ul> |
| |
| <p>The standard version of <code>ActionServlet</code> implements the |
| following logic for each incoming HTTP request. You can override |
| some or all of this functionality by subclassing this servlet and |
| implementing your own version of the processing.</p> |
| <ul> |
| <li>Identify, from the incoming request URI, the substring that will be |
| used to select an action procedure.</li> |
| <li>Use this substring to map to the Java class name of the corresponding |
| action class (an implementation of the <code>Action</code> interface). |
| </li> |
| <li>If this is the first request for a particular action class, instantiate |
| an instance of that class and cache it for future use.</li> |
| <li>Optionally populate the properties of an <code>ActionForm</code> bean |
| associated with this mapping.</li> |
| <li>Call the <code>execute</code> method of this action class, passing |
| on a reference to the mapping that was used (thereby providing access |
| to the underlying ActionServlet and ServletContext, as well as any |
| specialized properties of the mapping itself), and the request and |
| response that were passed to the controller by the servlet container. |
| </li> |
| </ul> |
| |
| <p>The standard version of <code>ActionServlet</code> is configured based |
| on the following servlet initialization parameters, which you will specify |
| in the web application deployment descriptor (<code>/WEB-INF/web.xml</code>) |
| for your application. Subclasses that specialize this servlet are free to |
| define additional initialization parameters. Several of these were |
| deprecated between the 1.0 and 1.1 releases. The deprecated parameters |
| are listed after the nominal parameters.</p> |
| <ul> |
| <li><strong>config</strong> - Comma-separated list of context-relative |
| path(s) to the XML resource(s) containing the configuration information |
| for the default module. (Multiple files support since Struts 1.1) |
| [/WEB-INF/struts-config.xml].</li> |
| <li><strong>config/${module}</strong> - Comma-separated list of |
| Context-relative path(s) to the XML resource(s) |
| containing the configuration information for the module that |
| will use the specified prefix (/${module}). This can be repeated as many |
| times as required for multiple modules. (Since Struts 1.1)</li> |
| <li><strong>convertNull</strong> - Force simulation of the Struts 1.0 behavior |
| when populating forms. If set to true, the numeric Java wrapper class types |
| (like <code>java.lang.Integer</code>) will default to null (rather than 0). |
| (Since Struts 1.1) [false] </li> |
| <li><strong>rulesets</strong> - Comma-delimited list of fully qualified |
| classnames of additional <code>org.apache.commons.digester.RuleSet</code> |
| instances that should be added to the <code>Digester</code> that will |
| be processing <code>struts-config.xml</code> files. By default, only |
| the <code>RuleSet</code> for the standard configuration elements is |
| loaded. (Since Struts 1.1)</li> |
| <li><strong>validating</strong> - Should we use a validating XML parser to |
| process the configuration file (strongly recommended)? [true]</li> |
| </ul> |
| <p>The following parameters may still be used with the Struts 1.1 release but |
| are <b>deprecated</b>. |
| <ul> |
| <li><strong>application</strong> - Java class name of the application |
| resources bundle base class. [NONE] |
| <em>DEPRECATED - Configure this using the "parameter" attribute |
| of the <message-resources> element.</em></li> |
| <li><strong>bufferSize</strong> - The size of the input buffer used when |
| processing file uploads. [4096] |
| <em>DEPRECATED - Configure this using the "bufferSize" attribute |
| of the <controller> element.</em></li> |
| <li><strong>content</strong> - Default content type and character encoding |
| to be set on each response; may be overridden by a forwarded-to |
| servlet or JSP page. [text/html] |
| <em>DEPRECATED - Configure this using the "contentType" attribute |
| of the <controller> element.</em></li> |
| <li><strong>debug</strong> - TThe debugging detail level that controls how much |
| information is logged for this servlet. Accepts values 0 (off) and from |
| 1 (least serious) through 6 (most serious). [0] |
| <em>DEPRECATED - Configure the logging detail level in your |
| underlying logging implementation.</em></li> |
| <li><strong>factory</strong> - The Java class name of the |
| <code>MessageResourcesFactory</code> used to create the application |
| <code>MessageResources</code> object. |
| [org.apache.struts.util.PropertyMessageResourcesFactory] |
| <em>DEPRECATED - Configure this using the "factory" attribute |
| of the <message-resources> element.</em></li> |
| <li><strong>formBean</strong> - The Java class name of the ActionFormBean |
| implementation to use [org.apache.struts.action.ActionFormBean]. |
| <em>DEPRECATED - Configure this using the "className" attribute |
| of each <form-bean> element.</em></li> |
| <li><strong>forward</strong> - The Java class name of the ActionForward |
| implementation to use [org.apache.struts.action.ActionForward]. |
| Two convenient classes you may wish to use are: |
| <ul> |
| <li><em>org.apache.struts.action.ForwardingActionForward</em> - |
| Subclass of <code>org.apache.struts.action.ActionForward</code> |
| that defaults the <code>redirect</code> property to |
| <code>false</code> (same as the ActionForward default value). |
| <li><em>org.apache.struts.action.RedirectingActionForward</em> - |
| Subclass of <code>org.apache.struts.action.ActionForward</code> |
| that defaults the <code>redirect</code> property to |
| <code>true</code>. |
| </ul> |
| <em>DEPRECATED - Configure this using the "className" attribute of |
| each <forward> element.</em></li> |
| <li><strong>locale</strong> - If set to <code>true</code>, and there is a |
| user session, identify and store an appropriate |
| <code>java.util.Locale</code> object (under the standard key |
| identified by <code>Globals.LOCALE_KEY</code>) in the user's session |
| if there is not a Locale object there already. [true] |
| <em>DEPRECATED - Configure this using the "locale" attribute of |
| the <controller> element.</em></li> |
| <li><strong>mapping</strong> - The Java class name of the ActionMapping |
| implementation to use [org.apache.struts.action.ActionMapping]. |
| Two convenient classes you may wish to use are: |
| <ul> |
| <li><em>org.apache.struts.action.RequestActionMapping</em> - Subclass |
| of <code>org.apache.struts.action.ActionMapping</code> that |
| defaults the <code>scope</code> property to "request". |
| <li><em>org.apache.struts.action.SessionActionMapping</em> - Subclass |
| of <code>org.apache.struts.action.ActionMapping</code> that |
| defaults the <code>scope</code> property to "session". (Same |
| as the ActionMapping default value). |
| </ul> |
| <em>DEPRECATED - Configure this using the "className" attribute of |
| each <action> element, or globally for a module by using the |
| "type" attribute of the <action-mappings> element.</em></li> |
| <li><strong>maxFileSize</strong> - The maximum size (in bytes) of a file |
| to be accepted as a file upload. Can be expressed as a number followed |
| by a "K" "M", or "G", which are interpreted to mean kilobytes, |
| megabytes, or gigabytes, respectively. [250M] |
| <em>DEPRECATED - Configure this using the "maxFileSize" attribute of |
| the <controller> element.</em></li> |
| <li><strong>multipartClass</strong> - The fully qualified name of the |
| MultipartRequestHandler implementation class to be used for processing |
| file uploads. If set to <code>none</code>, disables Struts multipart |
| request handling. [org.apache.struts.upload.CommonsMultipartRequestHandler] |
| <em>DEPRECATED - Configure this using the "multipartClass" attribute of |
| the <controller> element.</em></li> |
| <li><strong>nocache</strong> - If set to <code>true</code>, add HTTP headers |
| to every response intended to defeat browser caching of any response we |
| generate or forward to. [false] |
| <em>DEPRECATED - Configure this using the "nocache" attribute of |
| the <controller> element.</em></li> |
| <li><strong>null</strong> - If set to <code>true</code>, set our application |
| resources to return <code>null</code> if an unknown message key is used. |
| Otherwise, an error message including the offending message key will |
| be returned. [true] |
| <em>DEPRECATED - Configure this using the "null" attribute of |
| the <message-resources> element.</em></li> |
| <li><strong>tempDir</strong> - The temporary working directory to use when |
| processing file uploads. [The working directory provided to this web |
| application as a servlet context attribute] |
| <em>DEPRECATED - Configure this using the "tempDir" attribute of |
| the <controller> element.</em></li> |
| </ul> |
| <P> |
| |
| <P> |
| <DL> |
| <DT><B>Version:</B></DT> |
| <DD>$Revision: 1.1 $ $Date$</DD> |
| <DT><B>Author:</B></DT> |
| <DD>Craig R. McClanahan, Ted Husted, Martin Cooper, David Graham</DD> |
| <DT><B>See Also:</B><DD><A HREF="../../../../serialized-form.html" TARGET="org.apache.struts.action.ActionServlet">Serialized Form</A></DL> |
| <HR> |
| |
| <P> |
| <!-- ======== NESTED CLASS SUMMARY ======== --> |
| |
| |
| <!-- =========== FIELD SUMMARY =========== --> |
| |
| <A NAME="field_summary"><!-- --></A> |
| <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"> |
| <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
| <TD COLSPAN=2><FONT SIZE="+2"> |
| <B>Field Summary</B></FONT></TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>protected java.lang.String</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/action/ActionServlet.html#config">config</A></B></CODE> |
| |
| <BR> |
| Comma-separated list of context-relative path(s) to our configuration |
| resource(s) for the default module.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>protected org.apache.commons.digester.Digester</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/action/ActionServlet.html#configDigester">configDigester</A></B></CODE> |
| |
| <BR> |
| The Digester used to produce ModuleConfig objects from a |
| Struts configuration file.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>protected boolean</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/action/ActionServlet.html#convertNull">convertNull</A></B></CODE> |
| |
| <BR> |
| The flag to request backwards-compatible conversions for form bean |
| properties of the Java wrapper class types.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>protected org.apache.commons.collections.FastHashMap</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/action/ActionServlet.html#dataSources">dataSources</A></B></CODE> |
| |
| <BR> |
| The JDBC data sources that has been configured for this module, |
| if any, keyed by the servlet context attribute under which they are |
| stored.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>protected int</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/action/ActionServlet.html#debug">debug</A></B></CODE> |
| |
| <BR> |
| <B>Deprecated.</B> <I></I> </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>protected <A HREF="../../../../org/apache/struts/util/MessageResources.html">MessageResources</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/action/ActionServlet.html#internal">internal</A></B></CODE> |
| |
| <BR> |
| The resources object for our internal resources.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>protected java.lang.String</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/action/ActionServlet.html#internalName">internalName</A></B></CODE> |
| |
| <BR> |
| The Java base name of our internal resources.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>protected static org.apache.commons.logging.Log</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/action/ActionServlet.html#log">log</A></B></CODE> |
| |
| <BR> |
| Commons Logging instance.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>protected <A HREF="../../../../org/apache/struts/action/RequestProcessor.html">RequestProcessor</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/action/ActionServlet.html#processor">processor</A></B></CODE> |
| |
| <BR> |
| The <code>RequestProcessor</code> instance we will use to process |
| all incoming requests.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>protected java.lang.String[]</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/action/ActionServlet.html#registrations">registrations</A></B></CODE> |
| |
| <BR> |
| The set of public identifiers, and corresponding resource names, for |
| the versions of the configuration file DTDs that we know about.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>protected java.lang.String</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/action/ActionServlet.html#servletMapping">servletMapping</A></B></CODE> |
| |
| <BR> |
| The URL pattern to which we are mapped in our web application |
| deployment descriptor.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>protected java.lang.String</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/action/ActionServlet.html#servletName">servletName</A></B></CODE> |
| |
| <BR> |
| The servlet name under which we are registered in our web application |
| deployment descriptor.</TD> |
| </TR> |
| </TABLE> |
| <A NAME="fields_inherited_from_class_javax.servlet.http.HttpServlet"><!-- --></A> |
| <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"> |
| <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> |
| <TD><B>Fields inherited from class javax.servlet.http.HttpServlet</B></TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD><CODE></CODE></TD> |
| </TR> |
| </TABLE> |
| |
| <!-- ======== CONSTRUCTOR SUMMARY ======== --> |
| |
| <A NAME="constructor_summary"><!-- --></A> |
| <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"> |
| <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
| <TD COLSPAN=2><FONT SIZE="+2"> |
| <B>Constructor Summary</B></FONT></TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/action/ActionServlet.html#ActionServlet()">ActionServlet</A></B>()</CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| </TABLE> |
| |
| <!-- ========== METHOD SUMMARY =========== --> |
| |
| <A NAME="method_summary"><!-- --></A> |
| <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"> |
| <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
| <TD COLSPAN=2><FONT SIZE="+2"> |
| <B>Method Summary</B></FONT></TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> void</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/action/ActionServlet.html#addServletMapping(java.lang.String, java.lang.String)">addServletMapping</A></B>(java.lang.String servletName, |
| java.lang.String urlPattern)</CODE> |
| |
| <BR> |
| Remember a servlet mapping from our web application deployment |
| descriptor, if it is for this servlet.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>private void</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/action/ActionServlet.html#defaultControllerConfig(org.apache.struts.config.ModuleConfig)">defaultControllerConfig</A></B>(<A HREF="../../../../org/apache/struts/config/ModuleConfig.html">ModuleConfig</A> config)</CODE> |
| |
| <BR> |
| <B>Deprecated.</B> <I>Will be removed in a release after Struts 1.1.</I></TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>private void</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/action/ActionServlet.html#defaultFormBeansConfig(org.apache.struts.config.ModuleConfig)">defaultFormBeansConfig</A></B>(<A HREF="../../../../org/apache/struts/config/ModuleConfig.html">ModuleConfig</A> config)</CODE> |
| |
| <BR> |
| <B>Deprecated.</B> <I>Will be removed in a release after Struts 1.1.</I></TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>private void</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/action/ActionServlet.html#defaultForwardsConfig(org.apache.struts.config.ModuleConfig)">defaultForwardsConfig</A></B>(<A HREF="../../../../org/apache/struts/config/ModuleConfig.html">ModuleConfig</A> config)</CODE> |
| |
| <BR> |
| <B>Deprecated.</B> <I>Will be removed in a release after Struts 1.1.</I></TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>private void</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/action/ActionServlet.html#defaultMappingsConfig(org.apache.struts.config.ModuleConfig)">defaultMappingsConfig</A></B>(<A HREF="../../../../org/apache/struts/config/ModuleConfig.html">ModuleConfig</A> config)</CODE> |
| |
| <BR> |
| <B>Deprecated.</B> <I>Will be removed in a release after Struts 1.1.</I></TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>private void</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/action/ActionServlet.html#defaultMessageResourcesConfig(org.apache.struts.config.ModuleConfig)">defaultMessageResourcesConfig</A></B>(<A HREF="../../../../org/apache/struts/config/ModuleConfig.html">ModuleConfig</A> config)</CODE> |
| |
| <BR> |
| <B>Deprecated.</B> <I>Will be removed in a release after Struts 1.1.</I></TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> void</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/action/ActionServlet.html#destroy()">destroy</A></B>()</CODE> |
| |
| <BR> |
| Gracefully shut down this controller servlet, releasing any resources |
| that were allocated at initialization.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>protected void</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/action/ActionServlet.html#destroyApplications()">destroyApplications</A></B>()</CODE> |
| |
| <BR> |
| <B>Deprecated.</B> <I>replaced by destroyModules()</I></TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>protected void</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/action/ActionServlet.html#destroyConfigDigester()">destroyConfigDigester</A></B>()</CODE> |
| |
| <BR> |
| Gracefully release any configDigester instance that we have created.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>protected void</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/action/ActionServlet.html#destroyDataSources()">destroyDataSources</A></B>()</CODE> |
| |
| <BR> |
| <B>Deprecated.</B> <I>Will no longer be required with module support</I></TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>protected void</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/action/ActionServlet.html#destroyInternal()">destroyInternal</A></B>()</CODE> |
| |
| <BR> |
| Gracefully terminate use of the internal MessageResources.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>protected void</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/action/ActionServlet.html#destroyModules()">destroyModules</A></B>()</CODE> |
| |
| <BR> |
| Gracefully terminate use of any modules associated with this |
| application (if any).</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> void</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/action/ActionServlet.html#doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)">doGet</A></B>(javax.servlet.http.HttpServletRequest request, |
| javax.servlet.http.HttpServletResponse response)</CODE> |
| |
| <BR> |
| Process an HTTP "GET" request.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> void</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/action/ActionServlet.html#doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)">doPost</A></B>(javax.servlet.http.HttpServletRequest request, |
| javax.servlet.http.HttpServletResponse response)</CODE> |
| |
| <BR> |
| Process an HTTP "POST" request.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> javax.sql.DataSource</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/action/ActionServlet.html#findDataSource(java.lang.String)">findDataSource</A></B>(java.lang.String key)</CODE> |
| |
| <BR> |
| <B>Deprecated.</B> <I>Look up data sources directly in servlet context attributes</I></TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> <A HREF="../../../../org/apache/struts/action/ActionFormBean.html">ActionFormBean</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/action/ActionServlet.html#findFormBean(java.lang.String)">findFormBean</A></B>(java.lang.String name)</CODE> |
| |
| <BR> |
| <B>Deprecated.</B> <I>Replaced by ModuleConfig.findFormBeanConfig()</I></TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> <A HREF="../../../../org/apache/struts/action/ActionForward.html">ActionForward</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/action/ActionServlet.html#findForward(java.lang.String)">findForward</A></B>(java.lang.String name)</CODE> |
| |
| <BR> |
| <B>Deprecated.</B> <I>Replaced by ModuleConfig.findForwardConfig()</I></TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> <A HREF="../../../../org/apache/struts/action/ActionMapping.html">ActionMapping</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/action/ActionServlet.html#findMapping(java.lang.String)">findMapping</A></B>(java.lang.String path)</CODE> |
| |
| <BR> |
| <B>Deprecated.</B> <I>Replaced by ModuleConfig.findActionConfig()</I></TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>protected <A HREF="../../../../org/apache/struts/config/ApplicationConfig.html">ApplicationConfig</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/action/ActionServlet.html#getApplicationConfig(javax.servlet.http.HttpServletRequest)">getApplicationConfig</A></B>(javax.servlet.http.HttpServletRequest request)</CODE> |
| |
| <BR> |
| <B>Deprecated.</B> <I>use <A HREF="../../../../org/apache/struts/action/ActionServlet.html#getModuleConfig(javax.servlet.http.HttpServletRequest)"><CODE>getModuleConfig(HttpServletRequest)</CODE></A></I></TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> int</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/action/ActionServlet.html#getDebug()">getDebug</A></B>()</CODE> |
| |
| <BR> |
| <B>Deprecated.</B> <I>Configure the logging detail level in your underlying |
| logging implementation</I></TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> <A HREF="../../../../org/apache/struts/util/MessageResources.html">MessageResources</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/action/ActionServlet.html#getInternal()">getInternal</A></B>()</CODE> |
| |
| <BR> |
| Return the <code>MessageResources</code> instance containing our |
| internal message strings.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>protected <A HREF="../../../../org/apache/struts/config/ModuleConfig.html">ModuleConfig</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/action/ActionServlet.html#getModuleConfig(javax.servlet.http.HttpServletRequest)">getModuleConfig</A></B>(javax.servlet.http.HttpServletRequest request)</CODE> |
| |
| <BR> |
| Return the module configuration object for the currently selected |
| module.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>protected <A HREF="../../../../org/apache/struts/action/RequestProcessor.html">RequestProcessor</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/action/ActionServlet.html#getRequestProcessor(org.apache.struts.config.ModuleConfig)">getRequestProcessor</A></B>(<A HREF="../../../../org/apache/struts/config/ModuleConfig.html">ModuleConfig</A> config)</CODE> |
| |
| <BR> |
| 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.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> <A HREF="../../../../org/apache/struts/util/MessageResources.html">MessageResources</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/action/ActionServlet.html#getResources()">getResources</A></B>()</CODE> |
| |
| <BR> |
| <B>Deprecated.</B> <I>Actions should call Action.getResources(HttpServletRequest) |
| instead of this method, in order to retrieve the resources for the |
| current module.</I></TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>private void</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/action/ActionServlet.html#handleConfigException(java.lang.String, java.lang.Exception)">handleConfigException</A></B>(java.lang.String paths, |
| java.lang.Exception e)</CODE> |
| |
| <BR> |
| Simplifies exception handling in the parseModuleConfigFile() method.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> void</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/action/ActionServlet.html#init()">init</A></B>()</CODE> |
| |
| <BR> |
| Initialize this servlet.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>protected <A HREF="../../../../org/apache/struts/config/ApplicationConfig.html">ApplicationConfig</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/action/ActionServlet.html#initApplicationConfig(java.lang.String, java.lang.String)">initApplicationConfig</A></B>(java.lang.String prefix, |
| java.lang.String path)</CODE> |
| |
| <BR> |
| <B>Deprecated.</B> <I>use <A HREF="../../../../org/apache/struts/action/ActionServlet.html#initModuleConfig(java.lang.String, java.lang.String)"><CODE>initModuleConfig(String,String)</CODE></A></I></TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>protected void</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/action/ActionServlet.html#initApplicationDataSources(org.apache.struts.config.ModuleConfig)">initApplicationDataSources</A></B>(<A HREF="../../../../org/apache/struts/config/ModuleConfig.html">ModuleConfig</A> config)</CODE> |
| |
| <BR> |
| <B>Deprecated.</B> <I>use initModuleDataSources(ModuleConfig)</I></TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>protected void</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/action/ActionServlet.html#initApplicationMessageResources(org.apache.struts.config.ModuleConfig)">initApplicationMessageResources</A></B>(<A HREF="../../../../org/apache/struts/config/ModuleConfig.html">ModuleConfig</A> config)</CODE> |
| |
| <BR> |
| <B>Deprecated.</B> <I>use initModuleMessageResources()</I></TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>protected void</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/action/ActionServlet.html#initApplicationPlugIns(org.apache.struts.config.ModuleConfig)">initApplicationPlugIns</A></B>(<A HREF="../../../../org/apache/struts/config/ModuleConfig.html">ModuleConfig</A> config)</CODE> |
| |
| <BR> |
| <B>Deprecated.</B> <I>use <A HREF="../../../../org/apache/struts/action/ActionServlet.html#initModulePlugIns(org.apache.struts.config.ModuleConfig)"><CODE>initModulePlugIns(ModuleConfig)</CODE></A></I></TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>protected org.apache.commons.digester.Digester</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/action/ActionServlet.html#initConfigDigester()">initConfigDigester</A></B>()</CODE> |
| |
| <BR> |
| Create (if needed) and return a new Digester instance that has been |
| initialized to process Struts module configuraiton files and |
| configure a corresponding ModuleConfig object (which must be |
| pushed on to the evaluation stack before parsing begins).</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>protected void</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/action/ActionServlet.html#initDataSources()">initDataSources</A></B>()</CODE> |
| |
| <BR> |
| <B>Deprecated.</B> <I>Replaced by initApplicationDataSources() that takes |
| an ModuleConfig argument. This method does nothing.</I></TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>protected void</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/action/ActionServlet.html#initInternal()">initInternal</A></B>()</CODE> |
| |
| <BR> |
| Initialize our internal MessageResources bundle.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>protected <A HREF="../../../../org/apache/struts/config/ModuleConfig.html">ModuleConfig</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/action/ActionServlet.html#initModuleConfig(java.lang.String, java.lang.String)">initModuleConfig</A></B>(java.lang.String prefix, |
| java.lang.String paths)</CODE> |
| |
| <BR> |
| Initialize the application configuration information for the |
| specified module.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>protected void</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/action/ActionServlet.html#initModuleDataSources(org.apache.struts.config.ModuleConfig)">initModuleDataSources</A></B>(<A HREF="../../../../org/apache/struts/config/ModuleConfig.html">ModuleConfig</A> config)</CODE> |
| |
| <BR> |
| Initialize the data sources for the specified module.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>protected void</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/action/ActionServlet.html#initModuleMessageResources(org.apache.struts.config.ModuleConfig)">initModuleMessageResources</A></B>(<A HREF="../../../../org/apache/struts/config/ModuleConfig.html">ModuleConfig</A> config)</CODE> |
| |
| <BR> |
| Initialize the application MessageResources for the specified |
| module.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>protected void</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/action/ActionServlet.html#initModulePlugIns(org.apache.struts.config.ModuleConfig)">initModulePlugIns</A></B>(<A HREF="../../../../org/apache/struts/config/ModuleConfig.html">ModuleConfig</A> config)</CODE> |
| |
| <BR> |
| Initialize the plug ins for the specified module.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>protected void</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/action/ActionServlet.html#initOther()">initOther</A></B>()</CODE> |
| |
| <BR> |
| Initialize other global characteristics of the controller servlet.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>protected void</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/action/ActionServlet.html#initServlet()">initServlet</A></B>()</CODE> |
| |
| <BR> |
| Initialize the servlet mapping under which our controller servlet |
| is being accessed.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> void</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/action/ActionServlet.html#log(java.lang.String, int)">log</A></B>(java.lang.String message, |
| int level)</CODE> |
| |
| <BR> |
| <B>Deprecated.</B> <I>Use commons-logging instead.</I></TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>private void</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/action/ActionServlet.html#parseModuleConfigFile(java.lang.String, java.lang.String, org.apache.struts.config.ModuleConfig, org.apache.commons.digester.Digester, java.lang.String)">parseModuleConfigFile</A></B>(java.lang.String prefix, |
| java.lang.String paths, |
| <A HREF="../../../../org/apache/struts/config/ModuleConfig.html">ModuleConfig</A> config, |
| org.apache.commons.digester.Digester digester, |
| java.lang.String path)</CODE> |
| |
| <BR> |
| Parses one module config file.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>protected void</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/action/ActionServlet.html#process(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)">process</A></B>(javax.servlet.http.HttpServletRequest request, |
| javax.servlet.http.HttpServletResponse response)</CODE> |
| |
| <BR> |
| Perform the standard request processing for this request, and create |
| the corresponding response.</TD> |
| </TR> |
| </TABLE> |
| <A NAME="methods_inherited_from_class_javax.servlet.http.HttpServlet"><!-- --></A> |
| <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"> |
| <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> |
| <TD><B>Methods inherited from class javax.servlet.http.HttpServlet</B></TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD><CODE>doDelete, doOptions, doPut, doTrace, getLastModified, service, service</CODE></TD> |
| </TR> |
| </TABLE> |
| <A NAME="methods_inherited_from_class_javax.servlet.GenericServlet"><!-- --></A> |
| <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"> |
| <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> |
| <TD><B>Methods inherited from class javax.servlet.GenericServlet</B></TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD><CODE>getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log</CODE></TD> |
| </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, 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>Comma-separated list of context-relative path(s) to our configuration |
| resource(s) for the default module. |
| <P> |
| <DL> |
| </DL> |
| </DL> |
| <HR> |
| |
| <A NAME="configDigester"><!-- --></A><H3> |
| configDigester</H3> |
| <PRE> |
| protected org.apache.commons.digester.Digester <B>configDigester</B></PRE> |
| <DL> |
| <DD>The Digester used to produce ModuleConfig objects from a |
| Struts configuration file. |
| <P> |
| <DL> |
| <DT><B>Since:</B></DT> |
| <DD>Struts 1.1</DD> |
| </DL> |
| </DL> |
| <HR> |
| |
| <A NAME="convertNull"><!-- --></A><H3> |
| convertNull</H3> |
| <PRE> |
| protected boolean <B>convertNull</B></PRE> |
| <DL> |
| <DD>The flag to request backwards-compatible conversions for form bean |
| properties of the Java wrapper class types. |
| <P> |
| <DL> |
| <DT><B>Since:</B></DT> |
| <DD>Struts 1.1</DD> |
| </DL> |
| </DL> |
| <HR> |
| |
| <A NAME="dataSources"><!-- --></A><H3> |
| dataSources</H3> |
| <PRE> |
| protected org.apache.commons.collections.FastHashMap <B>dataSources</B></PRE> |
| <DL> |
| <DD>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> |
| </DL> |
| </DL> |
| <HR> |
| |
| <A NAME="debug"><!-- --></A><H3> |
| debug</H3> |
| <PRE> |
| protected int <B>debug</B></PRE> |
| <DL> |
| <DD><B>Deprecated.</B> <I></I> |
| <P> |
| <DD>The debugging detail level for this servlet. |
| <P> |
| <DL> |
| </DL> |
| </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>The resources object for our internal resources. |
| <P> |
| <DL> |
| </DL> |
| </DL> |
| <HR> |
| |
| <A NAME="internalName"><!-- --></A><H3> |
| internalName</H3> |
| <PRE> |
| protected java.lang.String <B>internalName</B></PRE> |
| <DL> |
| <DD>The Java base name of our internal resources. |
| <P> |
| <DL> |
| <DT><B>Since:</B></DT> |
| <DD>Struts 1.1</DD> |
| </DL> |
| </DL> |
| <HR> |
| |
| <A NAME="log"><!-- --></A><H3> |
| log</H3> |
| <PRE> |
| protected static org.apache.commons.logging.Log <B>log</B></PRE> |
| <DL> |
| <DD>Commons Logging instance. |
| <P> |
| <DL> |
| <DT><B>Since:</B></DT> |
| <DD>Struts 1.1</DD> |
| </DL> |
| </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>The <code>RequestProcessor</code> instance we will use to process |
| all incoming requests. |
| <P> |
| <DL> |
| <DT><B>Since:</B></DT> |
| <DD>Struts 1.1</DD> |
| </DL> |
| </DL> |
| <HR> |
| |
| <A NAME="registrations"><!-- --></A><H3> |
| registrations</H3> |
| <PRE> |
| protected java.lang.String[] <B>registrations</B></PRE> |
| <DL> |
| <DD>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> |
| </DL> |
| </DL> |
| <HR> |
| |
| <A NAME="servletMapping"><!-- --></A><H3> |
| servletMapping</H3> |
| <PRE> |
| protected java.lang.String <B>servletMapping</B></PRE> |
| <DL> |
| <DD>The URL pattern to which we are mapped in our web application |
| deployment descriptor. FIXME - multiples??? |
| <P> |
| <DL> |
| </DL> |
| </DL> |
| <HR> |
| |
| <A NAME="servletName"><!-- --></A><H3> |
| servletName</H3> |
| <PRE> |
| protected java.lang.String <B>servletName</B></PRE> |
| <DL> |
| <DD>The servlet name under which we are registered in our web application |
| deployment descriptor. |
| <P> |
| <DL> |
| </DL> |
| </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>Gracefully shut down this controller servlet, releasing any resources |
| that were allocated at initialization. |
| <P> |
| <DD><DL> |
| <DT><B>Specified by:</B><DD><CODE>destroy</CODE> in interface <CODE>javax.servlet.Servlet</CODE><DT><B>Overrides:</B><DD><CODE>destroy</CODE> in class <CODE>javax.servlet.GenericServlet</CODE></DL> |
| </DD> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="init()"><!-- --></A><H3> |
| init</H3> |
| <PRE> |
| public void <B>init</B>() |
| throws javax.servlet.ServletException</PRE> |
| <DL> |
| <DD>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="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>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>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>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="findDataSource(java.lang.String)"><!-- --></A><H3> |
| findDataSource</H3> |
| <PRE> |
| public javax.sql.DataSource <B>findDataSource</B>(java.lang.String key)</PRE> |
| <DL> |
| <DD><B>Deprecated.</B> <I>Look up data sources directly in servlet context attributes</I> |
| <P> |
| <DD>Return a JDBC data source associated with this module, if any. |
| <P> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>key</CODE> - The servlet context attribute key under which this data |
| source is stored, or <code>null</code> for the default.</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="findFormBean(java.lang.String)"><!-- --></A><H3> |
| findFormBean</H3> |
| <PRE> |
| public <A HREF="../../../../org/apache/struts/action/ActionFormBean.html">ActionFormBean</A> <B>findFormBean</B>(java.lang.String name)</PRE> |
| <DL> |
| <DD><B>Deprecated.</B> <I>Replaced by ModuleConfig.findFormBeanConfig()</I> |
| <P> |
| <DD>Return the form bean definition associated with the specified |
| logical name, if any; otherwise return <code>null</code>. |
| <P> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>name</CODE> - Logical name of the requested form bean definition</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="findForward(java.lang.String)"><!-- --></A><H3> |
| findForward</H3> |
| <PRE> |
| public <A HREF="../../../../org/apache/struts/action/ActionForward.html">ActionForward</A> <B>findForward</B>(java.lang.String name)</PRE> |
| <DL> |
| <DD><B>Deprecated.</B> <I>Replaced by ModuleConfig.findForwardConfig()</I> |
| <P> |
| <DD>Return the forwarding associated with the specified logical name, |
| if any; otherwise return <code>null</code>. |
| <P> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>name</CODE> - Logical name of the requested forwarding</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="findMapping(java.lang.String)"><!-- --></A><H3> |
| findMapping</H3> |
| <PRE> |
| public <A HREF="../../../../org/apache/struts/action/ActionMapping.html">ActionMapping</A> <B>findMapping</B>(java.lang.String path)</PRE> |
| <DL> |
| <DD><B>Deprecated.</B> <I>Replaced by ModuleConfig.findActionConfig()</I> |
| <P> |
| <DD>Return the ActionMapping for the specified path, for the default |
| module. |
| <P> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>path</CODE> - Request path for which a mapping is requested</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getDebug()"><!-- --></A><H3> |
| getDebug</H3> |
| <PRE> |
| public int <B>getDebug</B>()</PRE> |
| <DL> |
| <DD><B>Deprecated.</B> <I>Configure the logging detail level in your underlying |
| logging implementation</I> |
| <P> |
| <DD>Return the debugging detail level for this servlet. |
| <P> |
| <DD><DL> |
| </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>Return the <code>MessageResources</code> instance containing our |
| internal message strings. |
| <P> |
| <DD><DL> |
| <DT><B>Since:</B></DT> |
| <DD>Struts 1.1</DD> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getResources()"><!-- --></A><H3> |
| getResources</H3> |
| <PRE> |
| public <A HREF="../../../../org/apache/struts/util/MessageResources.html">MessageResources</A> <B>getResources</B>()</PRE> |
| <DL> |
| <DD><B>Deprecated.</B> <I>Actions should call Action.getResources(HttpServletRequest) |
| instead of this method, in order to retrieve the resources for the |
| current module.</I> |
| <P> |
| <DD><p>Return the application resources for the default module, |
| if any. |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="log(java.lang.String, int)"><!-- --></A><H3> |
| log</H3> |
| <PRE> |
| public void <B>log</B>(java.lang.String message, |
| int level)</PRE> |
| <DL> |
| <DD><B>Deprecated.</B> <I>Use commons-logging instead.</I> |
| <P> |
| <DD>Log the specified message if the current debugging detail level for |
| this servlet has been set to an equal or higher value. Otherwise, |
| ignore this message. |
| <P> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>message</CODE> - Message to be logged<DD><CODE>level</CODE> - Debugging detail level of this message</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="destroyApplications()"><!-- --></A><H3> |
| destroyApplications</H3> |
| <PRE> |
| protected void <B>destroyApplications</B>()</PRE> |
| <DL> |
| <DD><B>Deprecated.</B> <I>replaced by destroyModules()</I> |
| <P> |
| <DD>Gracefully terminate use of any modules associated with this |
| application (if any). |
| <P> |
| <DD><DL> |
| <DT><B>Since:</B></DT> |
| <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>Gracefully terminate use of any modules associated with this |
| application (if any). |
| <P> |
| <DD><DL> |
| <DT><B>Since:</B></DT> |
| <DD>Struts 1.1</DD> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="destroyConfigDigester()"><!-- --></A><H3> |
| destroyConfigDigester</H3> |
| <PRE> |
| protected void <B>destroyConfigDigester</B>()</PRE> |
| <DL> |
| <DD>Gracefully release any configDigester instance that we have created. |
| <P> |
| <DD><DL> |
| <DT><B>Since:</B></DT> |
| <DD>Struts 1.1</DD> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="destroyDataSources()"><!-- --></A><H3> |
| destroyDataSources</H3> |
| <PRE> |
| protected void <B>destroyDataSources</B>()</PRE> |
| <DL> |
| <DD><B>Deprecated.</B> <I>Will no longer be required with module support</I> |
| <P> |
| <DD>Gracefully terminate use of the data source associated with this |
| application (if any). |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="destroyInternal()"><!-- --></A><H3> |
| destroyInternal</H3> |
| <PRE> |
| protected void <B>destroyInternal</B>()</PRE> |
| <DL> |
| <DD>Gracefully terminate use of the internal MessageResources. |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getApplicationConfig(javax.servlet.http.HttpServletRequest)"><!-- --></A><H3> |
| getApplicationConfig</H3> |
| <PRE> |
| protected <A HREF="../../../../org/apache/struts/config/ApplicationConfig.html">ApplicationConfig</A> <B>getApplicationConfig</B>(javax.servlet.http.HttpServletRequest request)</PRE> |
| <DL> |
| <DD><B>Deprecated.</B> <I>use <A HREF="../../../../org/apache/struts/action/ActionServlet.html#getModuleConfig(javax.servlet.http.HttpServletRequest)"><CODE>getModuleConfig(HttpServletRequest)</CODE></A></I> |
| <P> |
| <DD>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></DT> |
| <DD>Struts 1.1</DD> |
| </DL> |
| </DD> |
| </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 request)</PRE> |
| <DL> |
| <DD>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></DT> |
| <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> config) |
| throws javax.servlet.ServletException</PRE> |
| <DL> |
| <DD>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></DT> |
| <DD>Struts 1.1</DD> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="initApplicationConfig(java.lang.String, java.lang.String)"><!-- --></A><H3> |
| initApplicationConfig</H3> |
| <PRE> |
| protected <A HREF="../../../../org/apache/struts/config/ApplicationConfig.html">ApplicationConfig</A> <B>initApplicationConfig</B>(java.lang.String prefix, |
| java.lang.String path) |
| throws javax.servlet.ServletException</PRE> |
| <DL> |
| <DD><B>Deprecated.</B> <I>use <A HREF="../../../../org/apache/struts/action/ActionServlet.html#initModuleConfig(java.lang.String, java.lang.String)"><CODE>initModuleConfig(String,String)</CODE></A></I> |
| <P> |
| <DD><p>Initialize the application configuration information for the |
| specified module.</p> |
| <P> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>prefix</CODE> - Module prefix for this module<DD><CODE>path</CODE> - Context-relative resource path for this modules's |
| configuration resource |
| <DT><B>Throws:</B> |
| <DD><CODE>javax.servlet.ServletException</CODE> - if initialization cannot be performed<DT><B>Since:</B></DT> |
| <DD>Struts 1.1</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 prefix, |
| java.lang.String paths) |
| throws javax.servlet.ServletException</PRE> |
| <DL> |
| <DD><p>Initialize the application configuration information for the |
| specified module.</p> |
| <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></DT> |
| <DD>Struts 1.1</DD> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="parseModuleConfigFile(java.lang.String, java.lang.String, org.apache.struts.config.ModuleConfig, org.apache.commons.digester.Digester, java.lang.String)"><!-- --></A><H3> |
| parseModuleConfigFile</H3> |
| <PRE> |
| private void <B>parseModuleConfigFile</B>(java.lang.String prefix, |
| java.lang.String paths, |
| <A HREF="../../../../org/apache/struts/config/ModuleConfig.html">ModuleConfig</A> config, |
| org.apache.commons.digester.Digester digester, |
| java.lang.String path) |
| throws javax.servlet.UnavailableException</PRE> |
| <DL> |
| <DD>Parses one module config file. |
| <P> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>prefix</CODE> - <DD><CODE>paths</CODE> - <DD><CODE>config</CODE> - <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></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 paths, |
| java.lang.Exception e) |
| throws javax.servlet.UnavailableException</PRE> |
| <DL> |
| <DD>Simplifies exception handling in the parseModuleConfigFile() method. |
| <P> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>paths</CODE> - <DD><CODE>e</CODE> - |
| <DT><B>Throws:</B> |
| <DD><CODE>javax.servlet.UnavailableException</CODE></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="initApplicationDataSources(org.apache.struts.config.ModuleConfig)"><!-- --></A><H3> |
| initApplicationDataSources</H3> |
| <PRE> |
| protected void <B>initApplicationDataSources</B>(<A HREF="../../../../org/apache/struts/config/ModuleConfig.html">ModuleConfig</A> config) |
| throws javax.servlet.ServletException</PRE> |
| <DL> |
| <DD><B>Deprecated.</B> <I>use initModuleDataSources(ModuleConfig)</I> |
| <P> |
| <DD><p>Initialize the data sources for the specified module.</p> |
| <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></DT> |
| <DD>Struts 1.1</DD> |
| </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> config) |
| throws javax.servlet.ServletException</PRE> |
| <DL> |
| <DD><p>Initialize the data sources for the specified module.</p> |
| <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></DT> |
| <DD>Struts 1.1</DD> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="initApplicationPlugIns(org.apache.struts.config.ModuleConfig)"><!-- --></A><H3> |
| initApplicationPlugIns</H3> |
| <PRE> |
| protected void <B>initApplicationPlugIns</B>(<A HREF="../../../../org/apache/struts/config/ModuleConfig.html">ModuleConfig</A> config) |
| throws javax.servlet.ServletException</PRE> |
| <DL> |
| <DD><B>Deprecated.</B> <I>use <A HREF="../../../../org/apache/struts/action/ActionServlet.html#initModulePlugIns(org.apache.struts.config.ModuleConfig)"><CODE>initModulePlugIns(ModuleConfig)</CODE></A></I> |
| <P> |
| <DD><p>Initialize the plug ins for the specified module.</p> |
| <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></DT> |
| <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> config) |
| throws javax.servlet.ServletException</PRE> |
| <DL> |
| <DD><p>Initialize the plug ins for the specified module.</p> |
| <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></DT> |
| <DD>Struts 1.1</DD> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="initApplicationMessageResources(org.apache.struts.config.ModuleConfig)"><!-- --></A><H3> |
| initApplicationMessageResources</H3> |
| <PRE> |
| protected void <B>initApplicationMessageResources</B>(<A HREF="../../../../org/apache/struts/config/ModuleConfig.html">ModuleConfig</A> config) |
| throws javax.servlet.ServletException</PRE> |
| <DL> |
| <DD><B>Deprecated.</B> <I>use initModuleMessageResources()</I> |
| <P> |
| <DD><p>Initialize the application MessageResources for the specified |
| module.</p> |
| <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></DT> |
| <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> config) |
| throws javax.servlet.ServletException</PRE> |
| <DL> |
| <DD><p>Initialize the application MessageResources for the specified |
| module.</p> |
| <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></DT> |
| <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 Digester instance that has been |
| initialized to process Struts module configuraiton files and |
| configure a corresponding ModuleConfig object (which must be |
| pushed on to the evaluation stack before parsing begins).</p> |
| <P> |
| <DD><DL> |
| |
| <DT><B>Throws:</B> |
| <DD><CODE>javax.servlet.ServletException</CODE> - if a Digester cannot be configured<DT><B>Since:</B></DT> |
| <DD>Struts 1.1</DD> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="initDataSources()"><!-- --></A><H3> |
| initDataSources</H3> |
| <PRE> |
| protected void <B>initDataSources</B>() |
| throws javax.servlet.ServletException</PRE> |
| <DL> |
| <DD><B>Deprecated.</B> <I>Replaced by initApplicationDataSources() that takes |
| an ModuleConfig argument. This method does nothing.</I> |
| <P> |
| <DD>Initialize data sources for the default module. This method |
| signature is maintained only for backwards compatibility, and will |
| be removed in a subsequent release. |
| <P> |
| <DD><DL> |
| |
| <DD><CODE>javax.servlet.ServletException</CODE></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="initInternal()"><!-- --></A><H3> |
| initInternal</H3> |
| <PRE> |
| protected void <B>initInternal</B>() |
| throws javax.servlet.ServletException</PRE> |
| <DL> |
| <DD>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>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>Initialize the servlet mapping under which our controller servlet |
| is being accessed. This will be used in the <code>&html:form></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 request, |
| javax.servlet.http.HttpServletResponse response) |
| throws java.io.IOException, |
| javax.servlet.ServletException</PRE> |
| <DL> |
| <DD>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> |
| <HR> |
| |
| <A NAME="defaultControllerConfig(org.apache.struts.config.ModuleConfig)"><!-- --></A><H3> |
| defaultControllerConfig</H3> |
| <PRE> |
| private void <B>defaultControllerConfig</B>(<A HREF="../../../../org/apache/struts/config/ModuleConfig.html">ModuleConfig</A> config)</PRE> |
| <DL> |
| <DD><B>Deprecated.</B> <I>Will be removed in a release after Struts 1.1.</I> |
| <P> |
| <DD>Perform backwards-compatible configuration of the default module's |
| controller configuration from servlet initialization parameters (as |
| were used in Struts 1.0). |
| <P> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>config</CODE> - The ModuleConfig object for the default module<DT><B>Since:</B></DT> |
| <DD>Struts 1.1</DD> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="defaultFormBeansConfig(org.apache.struts.config.ModuleConfig)"><!-- --></A><H3> |
| defaultFormBeansConfig</H3> |
| <PRE> |
| private void <B>defaultFormBeansConfig</B>(<A HREF="../../../../org/apache/struts/config/ModuleConfig.html">ModuleConfig</A> config)</PRE> |
| <DL> |
| <DD><B>Deprecated.</B> <I>Will be removed in a release after Struts 1.1.</I> |
| <P> |
| <DD>Perform backwards-compatible configuration of an ActionFormBeans |
| collection, and expose it as a servlet context attribute (as was |
| used in Struts 1.0). Note that the current controller code does |
| not (and should not) reference this attribute for any reason. |
| <P> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>config</CODE> - The ModuleConfig object for the default app<DT><B>Since:</B></DT> |
| <DD>Struts 1.1</DD> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="defaultForwardsConfig(org.apache.struts.config.ModuleConfig)"><!-- --></A><H3> |
| defaultForwardsConfig</H3> |
| <PRE> |
| private void <B>defaultForwardsConfig</B>(<A HREF="../../../../org/apache/struts/config/ModuleConfig.html">ModuleConfig</A> config)</PRE> |
| <DL> |
| <DD><B>Deprecated.</B> <I>Will be removed in a release after Struts 1.1.</I> |
| <P> |
| <DD>Perform backwards-compatible configuration of an ActionForwards |
| collection, and expose it as a servlet context attribute (as was |
| used in Struts 1.0). Note that the current controller code does |
| not (and should not) reference this attribute for any reason. |
| <P> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>config</CODE> - The ModuleConfig object for the default app<DT><B>Since:</B></DT> |
| <DD>Struts 1.1</DD> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="defaultMappingsConfig(org.apache.struts.config.ModuleConfig)"><!-- --></A><H3> |
| defaultMappingsConfig</H3> |
| <PRE> |
| private void <B>defaultMappingsConfig</B>(<A HREF="../../../../org/apache/struts/config/ModuleConfig.html">ModuleConfig</A> config)</PRE> |
| <DL> |
| <DD><B>Deprecated.</B> <I>Will be removed in a release after Struts 1.1.</I> |
| <P> |
| <DD>Perform backwards-compatible configuration of an ActionMappings |
| collection, and expose it as a servlet context attribute (as was |
| used in Struts 1.0). Note that the current controller code does |
| not (and should not) reference this attribute for any reason. |
| <P> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>config</CODE> - The ModuleConfig object for the default app<DT><B>Since:</B></DT> |
| <DD>Struts 1.1</DD> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="defaultMessageResourcesConfig(org.apache.struts.config.ModuleConfig)"><!-- --></A><H3> |
| defaultMessageResourcesConfig</H3> |
| <PRE> |
| private void <B>defaultMessageResourcesConfig</B>(<A HREF="../../../../org/apache/struts/config/ModuleConfig.html">ModuleConfig</A> config)</PRE> |
| <DL> |
| <DD><B>Deprecated.</B> <I>Will be removed in a release after Struts 1.1.</I> |
| <P> |
| <DD>Perform backwards-compatible configuration of the default module's |
| message resources configuration from servlet initialization parameters |
| (as were used in Struts 1.0). |
| <P> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>config</CODE> - The ModuleConfig object for the default module<DT><B>Since:</B></DT> |
| <DD>Struts 1.1</DD> |
| </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=3 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> </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="class-use/ActionServlet.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </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="../../../../org/apache/struts/action/ActionMessages.ActionMessageItem.html"><B>PREV CLASS</B></A> |
| <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> |
| <A HREF="ActionServlet.html" TARGET="_top"><B>NO FRAMES</B></A> |
| |
| <SCRIPT> |
| <!-- |
| if(window==top) { |
| document.writeln('<A HREF="../../../../allclasses-noframe.html" TARGET=""><B>All Classes</B></A>'); |
| } |
| //--> |
| </SCRIPT> |
| <NOSCRIPT> |
| <A HREF="../../../../allclasses-noframe.html" TARGET=""><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> |
| <!-- =========== END OF NAVBAR =========== --> |
| |
| <HR> |
| Copyright © 2000-2003 - Apache Software Foundation |
| </BODY> |
| </HTML> |