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

📄 strutsaction.html

📁 门户开发
💻 HTML
📖 第 1 页 / 共 3 页
字号:
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;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&nbsp;mapping,        org.apache.struts.action.ActionForm&nbsp;form,        javax.portlet.RenderRequest&nbsp;request,        javax.portlet.RenderResponse&nbsp;response)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;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&nbsp;mapping,        org.apache.struts.action.ActionForm&nbsp;form,        javax.servlet.ServletRequest&nbsp;request,        javax.servlet.ServletResponse&nbsp;response)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<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>&nbsp;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&nbsp;actionRequest,          int&nbsp;sc)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;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&nbsp;actionRequest,          int&nbsp;sc,          java.lang.String&nbsp;msg)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;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&nbsp;portletRequest,          int&nbsp;sc)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;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&nbsp;portletRequest,          int&nbsp;sc,          java.lang.String&nbsp;msg)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;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&nbsp;renderRequest,          int&nbsp;sc)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;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&nbsp;renderRequest,          int&nbsp;sc,          java.lang.String&nbsp;msg)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sends an error response to the client using the specified status code and descriptive message.</TD></TR></TABLE>&nbsp;<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>&nbsp;<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>&nbsp;<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&nbsp;mapping,                                                      org.apache.struts.action.ActionForm&nbsp;form,                                                      javax.portlet.PortletRequest&nbsp;request,                                                      javax.portlet.PortletResponse&nbsp;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&nbsp;mapping,                                                      org.apache.struts.action.ActionForm&nbsp;form,                                                      javax.portlet.ActionRequest&nbsp;request,                                                      javax.portlet.ActionResponse&nbsp;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&nbsp;mapping,                                                      org.apache.struts.action.ActionForm&nbsp;form,                                                      javax.portlet.RenderRequest&nbsp;request,                                                      javax.portlet.RenderResponse&nbsp;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&nbsp;mapping,                                                      org.apache.struts.action.ActionForm&nbsp;form,                                                      javax.servlet.ServletRequest&nbsp;request,                                                      javax.servlet.ServletResponse&nbsp;response)                                               throws java.lang.Exception</PRE>

⌨️ 快捷键说明

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