📄 strutsaction.html
字号:
<BR> Process the current request based on the ActionMapping information.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> org.apache.struts.action.ActionForward</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/ibm/portal/struts/action/StrutsAction.html#execute(org.apache.struts.action.ActionMapping, org.apache.struts.action.ActionForm, javax.portlet.RenderRequest, javax.portlet.RenderResponse)">execute</A></B>(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.portlet.RenderRequest request, javax.portlet.RenderResponse response)</CODE><BR> Process the current request based on the ActionMapping information.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> org.apache.struts.action.ActionForward</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/ibm/portal/struts/action/StrutsAction.html#execute(org.apache.struts.action.ActionMapping, org.apache.struts.action.ActionForm, javax.servlet.ServletRequest, javax.servlet.ServletResponse)">execute</A></B>(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.ServletRequest request, javax.servlet.ServletResponse response)</CODE><BR> <B>Deprecated.</B> <I>use execute methods that take portlet objects</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="../../../../../com/ibm/portal/struts/action/StrutsAction.html#sendError(javax.portlet.ActionRequest, int)">sendError</A></B>(javax.portlet.ActionRequest actionRequest, int sc)</CODE><BR> Sends an error response to the client using the specified status.</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="../../../../../com/ibm/portal/struts/action/StrutsAction.html#sendError(javax.portlet.ActionRequest, int, java.lang.String)">sendError</A></B>(javax.portlet.ActionRequest actionRequest, int sc, java.lang.String msg)</CODE><BR> Sends an error response to the client using the specified status code and descriptive message.</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="../../../../../com/ibm/portal/struts/action/StrutsAction.html#sendError(javax.portlet.PortletRequest, int)">sendError</A></B>(javax.portlet.PortletRequest portletRequest, int sc)</CODE><BR> Sends an error response to the client using the specified status.</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="../../../../../com/ibm/portal/struts/action/StrutsAction.html#sendError(javax.portlet.PortletRequest, int, java.lang.String)">sendError</A></B>(javax.portlet.PortletRequest portletRequest, int sc, java.lang.String msg)</CODE><BR> Sends an error response to the client using the specified status code and descriptive message.</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="../../../../../com/ibm/portal/struts/action/StrutsAction.html#sendError(javax.portlet.RenderRequest, int)">sendError</A></B>(javax.portlet.RenderRequest renderRequest, int sc)</CODE><BR> Sends an error response to the client using the specified status.</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="../../../../../com/ibm/portal/struts/action/StrutsAction.html#sendError(javax.portlet.RenderRequest, int, java.lang.String)">sendError</A></B>(javax.portlet.RenderRequest renderRequest, int sc, java.lang.String msg)</CODE><BR> Sends an error response to the client using the specified status code and descriptive message.</TD></TR></TABLE> <A NAME="methods_inherited_from_class_org.apache.struts.action.Action"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TH ALIGN="left"><B>Methods inherited from class org.apache.struts.action.Action</B></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE>generateToken, getDataSource, getDataSource, getLocale, getResources, getResources, getResources, getServlet, isCancelled, isTokenValid, isTokenValid, perform, perform, resetToken, saveErrors, saveMessages, saveToken, setLocale, setServlet, toHex</CODE></TD></TR></TABLE> <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH></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 =========== --><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TD></TR></TABLE><A NAME="StrutsAction()"><!-- --></A><H3>StrutsAction</H3><PRE>public <B>StrutsAction</B>()</PRE><DL><DD>Constructor for this class<P></DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><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.portlet.PortletRequest, javax.portlet.PortletResponse)"><!-- --></A><H3>execute</H3><PRE>public org.apache.struts.action.ActionForward <B>execute</B>(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.portlet.PortletRequest request, javax.portlet.PortletResponse response) throws java.lang.Exception</PRE><DL><DD>Process the current request based on the ActionMapping information. The processing should return an ActionForward, to control the processing. This implementation may not allow the response object to be written to directly, so an ActionForward should be returned. The response object may be an ActionResponse. A <code>null</code> return value will stop the request processing, but will not result in the creation of a new <code>IViewCommand</code>. Note that this signature will not be called if the execute method that takes either the Action or Render objects is also implemented.<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 PortletRequest we are processing<DD><CODE>response</CODE> - The PortletResponse we are processing<DT><B>Returns:</B><DD>returns the ActionForward object, can be <code>null</code><DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE> - if the application business logic throws an exception</DL></DD></DL><HR><A NAME="execute(org.apache.struts.action.ActionMapping, org.apache.struts.action.ActionForm, javax.portlet.ActionRequest, javax.portlet.ActionResponse)"><!-- --></A><H3>execute</H3><PRE>public org.apache.struts.action.ActionForward <B>execute</B>(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.portlet.ActionRequest request, javax.portlet.ActionResponse response) throws java.lang.Exception</PRE><DL><DD>Process the current request based on the ActionMapping information. The processing should return an ActionForward, to control the processing. This implementation does not allow the response object to be written to directly, so an ActionForward should be returned. A <code>null</code> return value will stop the request processing, but will not result in the creation of a new <code>IViewCommand</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 action request we are processing<DD><CODE>response</CODE> - The action response<DT><B>Returns:</B><DD>returns the ActionForward object, can be <code>null</code><DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE> - if the application business logic throws an exception</DL></DD></DL><HR><A NAME="execute(org.apache.struts.action.ActionMapping, org.apache.struts.action.ActionForm, javax.portlet.RenderRequest, javax.portlet.RenderResponse)"><!-- --></A><H3>execute</H3><PRE>public org.apache.struts.action.ActionForward <B>execute</B>(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.portlet.RenderRequest request, javax.portlet.RenderResponse response) throws java.lang.Exception</PRE><DL><DD>Process the current request based on the ActionMapping information. The processing should return an ActionForward, to control the processing. A <code>null</code> return value will stop the request processing, but will not result in the creation of a new <code>IViewCommand</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 render request we are processing<DD><CODE>response</CODE> - The render response<DT><B>Returns:</B><DD>returns the ActionForward object, can be <code>null</code><DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE> - if the application business logic throws an exception</DL></DD></DL><HR><A NAME="execute(org.apache.struts.action.ActionMapping, org.apache.struts.action.ActionForm, javax.servlet.ServletRequest, javax.servlet.ServletResponse)"><!-- --></A><H3>execute</H3><PRE>public org.apache.struts.action.ActionForward <B>execute</B>(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.ServletRequest request, javax.servlet.ServletResponse response) throws java.lang.Exception</PRE>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -