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

📄 requestprocessor.html

📁 struts api,学习使用struts必备的文档
💻 HTML
📖 第 1 页 / 共 5 页
字号:
 to continue, or <code>false</code> if the response has already been completed. The default implementation does nothing.</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</DL>
</DD>
</DL>
<HR>

<A NAME="processRoles(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, org.apache.struts.action.ActionMapping)"><!-- --></A><H3>
processRoles</H3>
<PRE>
protected boolean <B>processRoles</B>(javax.servlet.http.HttpServletRequest&nbsp;request,                               javax.servlet.http.HttpServletResponse&nbsp;response,                               <A HREF="../../../../org/apache/struts/action/ActionMapping.html">ActionMapping</A>&nbsp;mapping)                        throws java.io.IOException,                               javax.servlet.ServletException</PRE>
<DL>
<DD><p>If this action is protected by security roles, make sure that the current user possesses at least one of them.  Return <code>true</code> to continue normal processing, or <code>false</code> if an appropriate response has been created and processing should terminate.</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<DD><CODE>mapping</CODE> - The mapping we are using<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="processValidate(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, org.apache.struts.action.ActionForm, org.apache.struts.action.ActionMapping)"><!-- --></A><H3>
processValidate</H3>
<PRE>
protected boolean <B>processValidate</B>(javax.servlet.http.HttpServletRequest&nbsp;request,                                  javax.servlet.http.HttpServletResponse&nbsp;response,                                  <A HREF="../../../../org/apache/struts/action/ActionForm.html">ActionForm</A>&nbsp;form,                                  <A HREF="../../../../org/apache/struts/action/ActionMapping.html">ActionMapping</A>&nbsp;mapping)                           throws java.io.IOException,                                  javax.servlet.ServletException,                                  <A HREF="../../../../org/apache/struts/action/InvalidCancelException.html">InvalidCancelException</A></PRE>
<DL>
<DD><p>If this request was not cancelled, and the request's <A HREF="../../../../org/apache/struts/action/ActionMapping.html"><CODE>ActionMapping</CODE></A> has not disabled validation, call the <code>validate</code> method of the specified <A HREF="../../../../org/apache/struts/action/ActionForm.html"><CODE>ActionForm</CODE></A>, and forward to the input path if there were any errors. Return <code>true</code> if we should continue processing, or <code>false</code> if we have already forwarded control back to the input form.</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<DD><CODE>form</CODE> - The ActionForm instance we are populating<DD><CODE>mapping</CODE> - The ActionMapping we are using<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<DD><CODE><A HREF="../../../../org/apache/struts/action/InvalidCancelException.html">InvalidCancelException</A></CODE> - if a cancellation is attempted               without the proper action configuration</DL>
</DD>
</DL>
<HR>

<A NAME="internalModuleRelativeForward(java.lang.String, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)"><!-- --></A><H3>
internalModuleRelativeForward</H3>
<PRE>
protected void <B>internalModuleRelativeForward</B>(java.lang.String&nbsp;uri,                                             javax.servlet.http.HttpServletRequest&nbsp;request,                                             javax.servlet.http.HttpServletResponse&nbsp;response)                                      throws java.io.IOException,                                             javax.servlet.ServletException</PRE>
<DL>
<DD><p>Do a module relative forward to specified URI using request dispatcher. URI is relative to the current module. The real URI is compute by prefixing the module name.</p> <p>This method is used internally and is not part of the public API. It is advised to not use it in subclasses. </p><DD><DL>
<DT><B>Parameters:</B><DD><CODE>uri</CODE> - Module-relative URI to forward to<DD><CODE>request</CODE> - Current page request<DD><CODE>response</CODE> - Current page response<DT><B>Since: </B><DD>Struts 1.1</DD>
</DL>
</DD>
</DL>
<HR>

<A NAME="internalModuleRelativeInclude(java.lang.String, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)"><!-- --></A><H3>
internalModuleRelativeInclude</H3>
<PRE>
protected void <B>internalModuleRelativeInclude</B>(java.lang.String&nbsp;uri,                                             javax.servlet.http.HttpServletRequest&nbsp;request,                                             javax.servlet.http.HttpServletResponse&nbsp;response)                                      throws java.io.IOException,                                             javax.servlet.ServletException</PRE>
<DL>
<DD><p>Do a module relative include to specified URI using request dispatcher. URI is relative to the current module. The real URI is compute by prefixing the module name.</p> <p>This method is used internally and is not part of the public API. It is advised to not use it in subclasses.</p><DD><DL>
<DT><B>Parameters:</B><DD><CODE>uri</CODE> - Module-relative URI to include<DD><CODE>request</CODE> - Current page request<DD><CODE>response</CODE> - Current page response<DT><B>Since: </B><DD>Struts 1.1</DD>
</DL>
</DD>
</DL>
<HR>

<A NAME="doForward(java.lang.String, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)"><!-- --></A><H3>
doForward</H3>
<PRE>
protected void <B>doForward</B>(java.lang.String&nbsp;uri,                         javax.servlet.http.HttpServletRequest&nbsp;request,                         javax.servlet.http.HttpServletResponse&nbsp;response)                  throws java.io.IOException,                         javax.servlet.ServletException</PRE>
<DL>
<DD><p>Do a forward to specified URI using a <code>RequestDispatcher</code>. This method is used by all internal method needing to do a forward.</p><DD><DL>
<DT><B>Parameters:</B><DD><CODE>uri</CODE> - Context-relative URI to forward to<DD><CODE>request</CODE> - Current page request<DD><CODE>response</CODE> - Current page response<DT><B>Since: </B><DD>Struts 1.1</DD>
</DL>
</DD>
</DL>
<HR>

<A NAME="doInclude(java.lang.String, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)"><!-- --></A><H3>
doInclude</H3>
<PRE>
protected void <B>doInclude</B>(java.lang.String&nbsp;uri,                         javax.servlet.http.HttpServletRequest&nbsp;request,                         javax.servlet.http.HttpServletResponse&nbsp;response)                  throws java.io.IOException,                         javax.servlet.ServletException</PRE>
<DL>
<DD><p>Do an include of specified URI using a <code>RequestDispatcher</code>. This method is used by all internal method needing to do an include.</p><DD><DL>
<DT><B>Parameters:</B><DD><CODE>uri</CODE> - Context-relative URI to include<DD><CODE>request</CODE> - Current page request<DD><CODE>response</CODE> - Current page response<DT><B>Since: </B><DD>Struts 1.1</DD>
</DL>
</DD>
</DL>
<HR>

<A NAME="getInternal()"><!-- --></A><H3>
getInternal</H3>
<PRE>
protected <A HREF="../../../../org/apache/struts/util/MessageResources.html">MessageResources</A> <B>getInternal</B>()</PRE>
<DL>
<DD><p>Return the <code>MessageResources</code> instance containing our internal message strings.</p></DL>
<HR>

<A NAME="getServletContext()"><!-- --></A><H3>
getServletContext</H3>
<PRE>
protected javax.servlet.ServletContext <B>getServletContext</B>()</PRE>
<DL>
<DD><p>Return the <code>ServletContext</code> for the web application in which we are running.</DL>
<HR>

<A NAME="log(java.lang.String)"><!-- --></A><H3>
log</H3>
<PRE>
protected void <B>log</B>(java.lang.String&nbsp;message)</PRE>
<DL>
<DD><B>Deprecated.</B>&nbsp;<I>Use commons-logging instead. This will be removed in a release after Struts 1.2.</I>
<P>
<DD><p>Log the specified message to the servlet context log for this web application.</p><DD><DL>
<DT><B>Parameters:</B><DD><CODE>message</CODE> - The message to be logged</DL>
</DD>
</DL>
<HR>

<A NAME="log(java.lang.String, java.lang.Throwable)"><!-- --></A><H3>
log</H3>
<PRE>
protected void <B>log</B>(java.lang.String&nbsp;message,                   java.lang.Throwable&nbsp;exception)</PRE>
<DL>
<DD><B>Deprecated.</B>&nbsp;<I>Use commons-logging instead.  This will be removed in a release after Struts 1.2.</I>
<P>
<DD><p>Log the specified message and exception to the servlet context log for this web application.</p><DD><DL>
<DT><B>Parameters:</B><DD><CODE>message</CODE> - The message to be logged<DD><CODE>exception</CODE> - The exception to be logged</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/RequestProcessor.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;<A HREF="../../../../org/apache/struts/action/RequestActionMapping.html"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../../../org/apache/struts/action/SessionActionMapping.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="RequestProcessor.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 + -