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

📄 actionresponse.html.svn-base

📁 portal越来越流行了
💻 SVN-BASE
📖 第 1 页 / 共 2 页
字号:
</TABLE>&nbsp;<P><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Method Detail</B></FONT></TH></TR></TABLE><A NAME="sendRedirect(java.lang.String)"><!-- --></A><H3>sendRedirect</H3><PRE>void <B>sendRedirect</B>(java.lang.String&nbsp;location)                  throws java.io.IOException</PRE><DL><DD>Instructs the portlet container to send a redirect response  to the client using the specified redirect location URL.   <p> This method only accepts an absolute URL (e.g.  <code>http://my.co/myportal/mywebap/myfolder/myresource.gif</code>) or a full path URI (e.g. <code>/myportal/mywebap/myfolder/myresource.gif</code>). If required,  the portlet container may encode the given URL before the  redirection is issued to the client. <p> The sendRedirect method can not be invoked after any of the  following methods of the ActionResponse interface has been called: <ul> <li>setPortletMode</li> <li>setWindowState</li> <li>setRenderParameter</li> <li>setRenderParameters</li> <li>removePublicRenderParamter</li> </ul><P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>location</CODE> - the redirect location URL<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE> - if an input or output exception occurs.<DD><CODE>java.lang.IllegalArgumentException</CODE> - if a relative path URL is given<DD><CODE>java.lang.IllegalStateException</CODE> - if the method is invoked after any of above mentioned methods of                     the ActionResponse interface has been called.</DL></DD></DL><HR><A NAME="sendRedirect(java.lang.String, java.lang.String)"><!-- --></A><H3>sendRedirect</H3><PRE>void <B>sendRedirect</B>(java.lang.String&nbsp;location,                  java.lang.String&nbsp;renderUrlParamName)                  throws java.io.IOException</PRE><DL><DD>Instructs the portlet container to send a redirect response  to the client using the specified redirect location URL and encode a render URL as parameter on the redirect URL.   <p> This method only accepts an absolute URL (e.g.  <code>http://my.co/myportal/mywebap/myfolder/myresource.gif</code>) or a full path URI (e.g. <code>/myportal/mywebap/myfolder/myresource.gif</code>). If required,  the portlet container may encode the given URL before the  redirection is issued to the client. <p> The portlet container will attach a render URL with the currently set portlet mode, window state and render parameters on the <code>ActionResponse</code> and the current public render parameters.  The attached URL will be available as query parameter value under the key provided with the  <code>renderUrlParamName</code> parameter. <p> New values for <ul> <li>setPortletMode <li>setWindowState <li>setRenderParameter <li>setRenderParameters </ul> are only used for creating the render URL and not remembered after the redirect is issued.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>location</CODE> - the redirect location URL<DD><CODE>renderUrlParamName</CODE> - name of the query parameter under which the portlet container should                                store a render URL to this portlet<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE> - if an input or output exception occurs.<DD><CODE>java.lang.IllegalArgumentException</CODE> - if a relative path URL is given<DT><B>Since:</B></DT>  <DD>2.0</DD></DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ======= START OF BOTTOM NAVBAR ====== --><A NAME="navbar_bottom"><!-- --></A><A HREF="#skip-navbar_bottom" title="Skip navigation links"></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">  <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/ActionResponse.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-files/index-1.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="../../javax/portlet/ActionRequest.html" title="interface in javax.portlet"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../javax/portlet/BaseURL.html" title="interface in javax.portlet"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">  <A HREF="../../index.html?javax/portlet/ActionResponse.html" target="_top"><B>FRAMES</B></A>  &nbsp;&nbsp;<A HREF="ActionResponse.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;&nbsp;<SCRIPT type="text/javascript">  <!--  if(window==top) {    document.writeln('<A HREF="../../allclasses-noframe.html"><B>All Classes</B></A>');  }  //--></SCRIPT><NOSCRIPT>  <A HREF="../../allclasses-noframe.html"><B>All Classes</B></A></NOSCRIPT></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL:&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= --><HR></BODY></HTML>

⌨️ 快捷键说明

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