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

📄 action.html

📁 struts api,学习使用struts必备的文档
💻 HTML
📖 第 1 页 / 共 4 页
字号:
<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>
<HR>

<A NAME="isTokenValid(javax.servlet.http.HttpServletRequest)"><!-- --></A><H3>
isTokenValid</H3>
<PRE>
protected boolean <B>isTokenValid</B>(javax.servlet.http.HttpServletRequest&nbsp;request)</PRE>
<DL>
<DD><p>Return <code>true</code> if there is a transaction token stored in the user's current session, and the value submitted as a request parameter with this action matches it. Returns <code>false</code> under any of the following circumstances:</p> <ul> <li>No session associated with this request</li> <li>No transaction token saved in the session</li> <li>No transaction token included as a request parameter</li> <li>The included transaction token value does not match the     transaction token in the user's session</li> </ul><DD><DL>
<DT><B>Parameters:</B><DD><CODE>request</CODE> - The servlet request we are processing</DL>
</DD>
</DL>
<HR>

<A NAME="isTokenValid(javax.servlet.http.HttpServletRequest, boolean)"><!-- --></A><H3>
isTokenValid</H3>
<PRE>
protected boolean <B>isTokenValid</B>(javax.servlet.http.HttpServletRequest&nbsp;request,                               boolean&nbsp;reset)</PRE>
<DL>
<DD><p>Return <code>true</code> if there is a transaction token stored in the user's current session, and the value submitted as a request parameter with this action matches it. Returns <code>false</code> under any of the following circumstances:</p> <ul> <li>No session associated with this request</li> <li>No transaction token saved in the session</li> <li>No transaction token included as a request parameter</li> <li>The included transaction token value does not match the     transaction token in the user's session</li> </ul><DD><DL>
<DT><B>Parameters:</B><DD><CODE>request</CODE> - The servlet request we are processing<DD><CODE>reset</CODE> - Should we reset the token after checking it?</DL>
</DD>
</DL>
<HR>

<A NAME="resetToken(javax.servlet.http.HttpServletRequest)"><!-- --></A><H3>
resetToken</H3>
<PRE>
protected void <B>resetToken</B>(javax.servlet.http.HttpServletRequest&nbsp;request)</PRE>
<DL>
<DD><p>Reset the saved transaction token in the user's session. This indicates that transactional token checking will not be needed on the next request that is submitted.</p><DD><DL>
<DT><B>Parameters:</B><DD><CODE>request</CODE> - The servlet request we are processing</DL>
</DD>
</DL>
<HR>

<A NAME="saveErrors(javax.servlet.http.HttpServletRequest, org.apache.struts.action.ActionErrors)"><!-- --></A><H3>
saveErrors</H3>
<PRE>
protected void <B>saveErrors</B>(javax.servlet.http.HttpServletRequest&nbsp;request,                          <A HREF="../../../../org/apache/struts/action/ActionErrors.html">ActionErrors</A>&nbsp;errors)</PRE>
<DL>
<DD><B>Deprecated.</B>&nbsp;<I>Use saveErrors(HttpServletRequest, ActionMessages) instead. This will be removed after Struts 1.2.</I>
<P>
<DD><p>Save the specified error messages keys into the appropriate request attribute for use by the &lt;html:errors&gt; tag, if any messages are required. Otherwise, ensure that the request attribute is not created.</p><DD><DL>
<DT><B>Parameters:</B><DD><CODE>request</CODE> - The servlet request we are processing<DD><CODE>errors</CODE> - Error messages object</DL>
</DD>
</DL>
<HR>

<A NAME="saveErrors(javax.servlet.http.HttpServletRequest, org.apache.struts.action.ActionMessages)"><!-- --></A><H3>
saveErrors</H3>
<PRE>
protected void <B>saveErrors</B>(javax.servlet.http.HttpServletRequest&nbsp;request,                          <A HREF="../../../../org/apache/struts/action/ActionMessages.html">ActionMessages</A>&nbsp;errors)</PRE>
<DL>
<DD><p>Save the specified error messages keys into the appropriate request attribute for use by the &lt;html:errors&gt; tag, if any messages are required. Otherwise, ensure that the request attribute is not created.</p><DD><DL>
<DT><B>Parameters:</B><DD><CODE>request</CODE> - The servlet request we are processing<DD><CODE>errors</CODE> - Error messages object<DT><B>Since: </B><DD>Struts 1.2</DD>
</DL>
</DD>
</DL>
<HR>

<A NAME="saveMessages(javax.servlet.http.HttpServletRequest, org.apache.struts.action.ActionMessages)"><!-- --></A><H3>
saveMessages</H3>
<PRE>
protected void <B>saveMessages</B>(javax.servlet.http.HttpServletRequest&nbsp;request,                            <A HREF="../../../../org/apache/struts/action/ActionMessages.html">ActionMessages</A>&nbsp;messages)</PRE>
<DL>
<DD><p>Save the specified messages keys into the appropriate request attribute for use by the &lt;html:messages&gt; tag (if messages="true" is set), if any messages are required. Otherwise, ensure that the request attribute is not created.</p><DD><DL>
<DT><B>Parameters:</B><DD><CODE>request</CODE> - The servlet request we are processing.<DD><CODE>messages</CODE> - The messages to save. <code>null</code> or empty messages removes any existing ActionMessages in the request.<DT><B>Since: </B><DD>Struts 1.1</DD>
</DL>
</DD>
</DL>
<HR>

<A NAME="saveMessages(javax.servlet.http.HttpSession, org.apache.struts.action.ActionMessages)"><!-- --></A><H3>
saveMessages</H3>
<PRE>
protected void <B>saveMessages</B>(javax.servlet.http.HttpSession&nbsp;session,                            <A HREF="../../../../org/apache/struts/action/ActionMessages.html">ActionMessages</A>&nbsp;messages)</PRE>
<DL>
<DD><p>Save the specified messages keys into the appropriate session attribute for use by the &lt;html:messages&gt; tag (if messages="true" is set), if any messages are required. Otherwise, ensure that the session attribute is not created.</p><DD><DL>
<DT><B>Parameters:</B><DD><CODE>session</CODE> - The session to save the messages in.<DD><CODE>messages</CODE> - The messages to save. <code>null</code> or empty messages removes any existing ActionMessages in the session.<DT><B>Since: </B><DD>Struts 1.2</DD>
</DL>
</DD>
</DL>
<HR>

<A NAME="saveErrors(javax.servlet.http.HttpSession, org.apache.struts.action.ActionMessages)"><!-- --></A><H3>
saveErrors</H3>
<PRE>
protected void <B>saveErrors</B>(javax.servlet.http.HttpSession&nbsp;session,                          <A HREF="../../../../org/apache/struts/action/ActionMessages.html">ActionMessages</A>&nbsp;errors)</PRE>
<DL>
<DD><p>Save the specified error messages keys into the appropriate session attribute for use by the &lt;html:messages&gt; tag (if messages="false")  or &lt;html:errors&gt;, if any error messages are required. Otherwise,  ensure that the session attribute is empty.</p><DD><DL>
<DT><B>Parameters:</B><DD><CODE>session</CODE> - The session to save the error messages in.<DD><CODE>errors</CODE> - The error messages to save. <code>null</code> or empty messages removes any existing error ActionMessages in the session.<DT><B>Since: </B><DD>Struts 1.2.7</DD>
</DL>
</DD>
</DL>
<HR>

<A NAME="saveToken(javax.servlet.http.HttpServletRequest)"><!-- --></A><H3>
saveToken</H3>
<PRE>
protected void <B>saveToken</B>(javax.servlet.http.HttpServletRequest&nbsp;request)</PRE>
<DL>
<DD><p>Save a new transaction token in the user's current session, creating a new session if necessary.</p><DD><DL>
<DT><B>Parameters:</B><DD><CODE>request</CODE> - The servlet request we are processing</DL>
</DD>
</DL>
<HR>

<A NAME="setLocale(javax.servlet.http.HttpServletRequest, java.util.Locale)"><!-- --></A><H3>
setLocale</H3>
<PRE>
protected void <B>setLocale</B>(javax.servlet.http.HttpServletRequest&nbsp;request,                         java.util.Locale&nbsp;locale)</PRE>
<DL>
<DD><p>Set the user's currently selected <code>Locale</code> into their <code>HttpSession</code>.</p><DD><DL>
<DT><B>Parameters:</B><DD><CODE>request</CODE> - The request we are processing<DD><CODE>locale</CODE> - The user's selected Locale to be set, or null  to select the server's default Locale</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/Action.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/action/ActionError.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="Action.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 + -