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

📄 actiondispatcher.html

📁 struts api,学习使用struts必备的文档
💻 HTML
📖 第 1 页 / 共 3 页
字号:
types</H3>
<PRE>
protected java.lang.Class[] <B>types</B></PRE>
<DL>
<DD>The set of argument type classes for the reflected method call.  These are the same for all calls, so calculate them only once.</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="ActionDispatcher(org.apache.struts.action.Action)"><!-- --></A><H3>
ActionDispatcher</H3>
<PRE>
public <B>ActionDispatcher</B>(<A HREF="../../../../org/apache/struts/action/Action.html">Action</A>&nbsp;actionInstance)</PRE>
<DL>
</DL>
<HR>

<A NAME="ActionDispatcher(org.apache.struts.action.Action, int)"><!-- --></A><H3>
ActionDispatcher</H3>
<PRE>
public <B>ActionDispatcher</B>(<A HREF="../../../../org/apache/struts/action/Action.html">Action</A>&nbsp;actionInstance,                        int&nbsp;flavor)</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="execute(org.apache.struts.action.ActionMapping, org.apache.struts.action.ActionForm, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)"><!-- --></A><H3>
execute</H3>
<PRE>
public <A HREF="../../../../org/apache/struts/action/ActionForward.html">ActionForward</A> <B>execute</B>(<A HREF="../../../../org/apache/struts/action/ActionMapping.html">ActionMapping</A>&nbsp;mapping,                             <A HREF="../../../../org/apache/struts/action/ActionForm.html">ActionForm</A>&nbsp;form,                             javax.servlet.http.HttpServletRequest&nbsp;request,                             javax.servlet.http.HttpServletResponse&nbsp;response)                      throws java.lang.Exception</PRE>
<DL>
<DD>Process the specified HTTP request, and create the corresponding HTTP response (or forward to another web component that will create it). Return an <code>ActionForward</code> instance describing where and how control should be forwarded, or <code>null</code> if the response has already been completed.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>mapping</CODE> - The ActionMapping used to select this instance<DD><CODE>form</CODE> - The optional ActionForm bean for this request (if any)<DD><CODE>request</CODE> - The HTTP request we are processing<DD><CODE>response</CODE> - The HTTP response we are creating<DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE> - if an exception occurs</DL>
</DD>
</DL>
<HR>

<A NAME="unspecified(org.apache.struts.action.ActionMapping, org.apache.struts.action.ActionForm, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)"><!-- --></A><H3>
unspecified</H3>
<PRE>
protected <A HREF="../../../../org/apache/struts/action/ActionForward.html">ActionForward</A> <B>unspecified</B>(<A HREF="../../../../org/apache/struts/action/ActionMapping.html">ActionMapping</A>&nbsp;mapping,                                    <A HREF="../../../../org/apache/struts/action/ActionForm.html">ActionForm</A>&nbsp;form,                                    javax.servlet.http.HttpServletRequest&nbsp;request,                                    javax.servlet.http.HttpServletResponse&nbsp;response)                             throws java.lang.Exception</PRE>
<DL>
<DD><p>Dispatches to the target class' <code>unspecified</code> method,   if present, otherwise throws a ServletException. Classes utilizing  <code>ActionDispatcher</code> should provide an <code>unspecified</code>  method if they wish to provide behavior different than  throwing a ServletException..</p></DL>
<HR>

<A NAME="cancelled(org.apache.struts.action.ActionMapping, org.apache.struts.action.ActionForm, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)"><!-- --></A><H3>
cancelled</H3>
<PRE>
protected <A HREF="../../../../org/apache/struts/action/ActionForward.html">ActionForward</A> <B>cancelled</B>(<A HREF="../../../../org/apache/struts/action/ActionMapping.html">ActionMapping</A>&nbsp;mapping,                                  <A HREF="../../../../org/apache/struts/action/ActionForm.html">ActionForm</A>&nbsp;form,                                  javax.servlet.http.HttpServletRequest&nbsp;request,                                  javax.servlet.http.HttpServletResponse&nbsp;response)                           throws java.lang.Exception</PRE>
<DL>
<DD><p>Dispatches to the target class' cancelled method, if present,  otherwise returns null. Classes utilizing <code>ActionDispatcher</code>  should provide a <code>cancelled</code> method if they wish to provide  behavior different than returning null.</p></DL>
<HR>

<A NAME="dispatchMethod(org.apache.struts.action.ActionMapping, org.apache.struts.action.ActionForm, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String)"><!-- --></A><H3>
dispatchMethod</H3>
<PRE>
protected <A HREF="../../../../org/apache/struts/action/ActionForward.html">ActionForward</A> <B>dispatchMethod</B>(<A HREF="../../../../org/apache/struts/action/ActionMapping.html">ActionMapping</A>&nbsp;mapping,                                       <A HREF="../../../../org/apache/struts/action/ActionForm.html">ActionForm</A>&nbsp;form,                                       javax.servlet.http.HttpServletRequest&nbsp;request,                                       javax.servlet.http.HttpServletResponse&nbsp;response,                                       java.lang.String&nbsp;name)                                throws java.lang.Exception</PRE>
<DL>
<DD>Dispatch to the specified method.</DL>
<HR>

<A NAME="dispatchMethod(org.apache.struts.action.ActionMapping, org.apache.struts.action.ActionForm, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String, java.lang.reflect.Method)"><!-- --></A><H3>
dispatchMethod</H3>
<PRE>
protected <A HREF="../../../../org/apache/struts/action/ActionForward.html">ActionForward</A> <B>dispatchMethod</B>(<A HREF="../../../../org/apache/struts/action/ActionMapping.html">ActionMapping</A>&nbsp;mapping,                                       <A HREF="../../../../org/apache/struts/action/ActionForm.html">ActionForm</A>&nbsp;form,                                       javax.servlet.http.HttpServletRequest&nbsp;request,                                       javax.servlet.http.HttpServletResponse&nbsp;response,                                       java.lang.String&nbsp;name,                                       java.lang.reflect.Method&nbsp;method)                                throws java.lang.Exception</PRE>
<DL>
<DD>Dispatch to the specified method.</DL>
<HR>

<A NAME="getMethod(java.lang.String)"><!-- --></A><H3>
getMethod</H3>
<PRE>
protected java.lang.reflect.Method <B>getMethod</B>(java.lang.String&nbsp;name)                                      throws java.lang.NoSuchMethodException</PRE>
<DL>
<DD>Introspect the current class to identify a method of the specified name that accepts the same parameter types as the <code>execute</code> method does.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>name</CODE> - Name of the method to be introspected<DT><B>Throws:</B><DD><CODE>java.lang.NoSuchMethodException</CODE> - if no such method can be found</DL>
</DD>
</DL>
<HR>

<A NAME="getParameter(org.apache.struts.action.ActionMapping, org.apache.struts.action.ActionForm, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)"><!-- --></A><H3>
getParameter</H3>
<PRE>
protected java.lang.String <B>getParameter</B>(<A HREF="../../../../org/apache/struts/action/ActionMapping.html">ActionMapping</A>&nbsp;mapping,                                        <A HREF="../../../../org/apache/struts/action/ActionForm.html">ActionForm</A>&nbsp;form,                                        javax.servlet.http.HttpServletRequest&nbsp;request,                                        javax.servlet.http.HttpServletResponse&nbsp;response)                                 throws java.lang.Exception</PRE>
<DL>
<DD><p>Returns the parameter value as influenced by the selected <A HREF="../../../../org/apache/struts/actions/ActionDispatcher.html#flavor"><CODE>flavor</CODE></A> specified for this <code>ActionDispatcher</code>.</p><DD><DL>
<DT><B>Parameters:</B><DD><CODE>mapping</CODE> - The ActionMapping used to select this instance<DD><CODE>form</CODE> - The optional ActionForm bean for this request (if any)<DD><CODE>request</CODE> - The HTTP request we are processing<DD><CODE>response</CODE> - The HTTP response we are creating<DT><B>Returns:</B><DD>The <code>ActionMapping</code> parameter's value</DL>
</DD>
</DL>
<HR>

<A NAME="getMethodName(org.apache.struts.action.ActionMapping, org.apache.struts.action.ActionForm, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.String)"><!-- --></A><H3>
getMethodName</H3>
<PRE>
protected java.lang.String <B>getMethodName</B>(<A HREF="../../../../org/apache/struts/action/ActionMapping.html">ActionMapping</A>&nbsp;mapping,                                         <A HREF="../../../../org/apache/struts/action/ActionForm.html">ActionForm</A>&nbsp;form,                                         javax.servlet.http.HttpServletRequest&nbsp;request,                                         javax.servlet.http.HttpServletResponse&nbsp;response,                                         java.lang.String&nbsp;parameter)                                  throws java.lang.Exception</PRE>
<DL>
<DD>Returns the method name, given a parameter's value.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>mapping</CODE> - The ActionMapping used to select this instance<DD><CODE>form</CODE> - The optional ActionForm bean for this request (if any)<DD><CODE>request</CODE> - The HTTP request we are processing<DD><CODE>response</CODE> - The HTTP response we are creating<DD><CODE>parameter</CODE> - The <code>ActionMapping</code> parameter's name<DT><B>Returns:</B><DD>The method's name.</DL>
</DD>
</DL>
<HR>

<A NAME="isCancelled(javax.servlet.http.HttpServletRequest)"><!-- --></A><H3>
isCancelled</H3>
<PRE>
protected boolean <B>isCancelled</B>(javax.servlet.http.HttpServletRequest&nbsp;request)</PRE>
<DL>
<DD><p>Returns <code>true</code> if the current form's cancel button was pressed.  This method will check if the <code>Globals.CANCEL_KEY</code> request attribute has been set, which normally occurs if the cancel button generated by <strong>CancelTag</strong> was pressed by the user in the current request.  If <code>true</code>, validation performed by an <strong>ActionForm</strong>'s <code>validate()</code> method will have been skipped by the controller servlet.</p><DD><DL>
<DT><B>Parameters:</B><DD><CODE>request</CODE> - The servlet request we are processing<DT><B>See Also: </B><DD><A HREF="../../../../org/apache/struts/taglib/html/CancelTag.html"><CODE>CancelTag</CODE></A></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/ActionDispatcher.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;PREV CLASS&nbsp;
&nbsp;<A HREF="../../../../org/apache/struts/actions/DispatchAction.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="ActionDispatcher.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 + -