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

📄 wpsstrutsviewcommand.html

📁 门户开发
💻 HTML
📖 第 1 页 / 共 4 页
字号:
<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - of parameter to save<DD><CODE>value</CODE> - the value to store</DL></DD></DL><HR><A NAME="saveAttributes(javax.servlet.http.HttpServletRequest, com.ibm.wps.portlets.struts.ViewCommandExecutionContext)"><!-- --></A><H3>saveAttributes</H3><PRE>public void <B>saveAttributes</B>(javax.servlet.http.HttpServletRequest&nbsp;request,                           <A HREF="../../../../../com/ibm/wps/portlets/struts/ViewCommandExecutionContext.html" title="class in com.ibm.wps.portlets.struts">ViewCommandExecutionContext</A>&nbsp;context)</PRE><DL><DD>Saves attributes from the request by name for later retrieval when the command is executed.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>request</CODE> - The request object to save attributes from<DD><CODE>context</CODE> - the view command execution context</DL></DD></DL><HR><A NAME="getSavedAttributes()"><!-- --></A><H3>getSavedAttributes</H3><PRE>public java.util.Map <B>getSavedAttributes</B>()</PRE><DL><DD>Returns the saved attribute map. Should call saveAttributes before calling this method.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>returns the saved attributes.</DL></DD></DL><HR><A NAME="setSavedAttributes(java.util.Map)"><!-- --></A><H3>setSavedAttributes</H3><PRE>public void <B>setSavedAttributes</B>(java.util.Map&nbsp;attributeMap)</PRE><DL><DD>Sets the saved attribute map. Can set the attributes before execute is called which will repopulate the request object with the saved attributes.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>attributeMap</CODE> - the map of attributes.</DL></DD></DL><HR><A NAME="setRemoveOnModeChange(boolean)"><!-- --></A><H3>setRemoveOnModeChange</H3><PRE>public void <B>setRemoveOnModeChange</B>(boolean&nbsp;value)</PRE><DL><DD>Allows setting a flag so that this command is removed when the user switches modes.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>value</CODE> - true will cause this command to get removed</DL></DD></DL><HR><A NAME="getRemoveOnModeChange()"><!-- --></A><H3>getRemoveOnModeChange</H3><PRE>public boolean <B>getRemoveOnModeChange</B>()</PRE><DL><DD>Returns the state of removeOnModeChange.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>returns true if commnad should be removed on mode change.</DL></DD></DL><HR><A NAME="getPrefix(org.apache.jetspeed.portlet.PortletRequest)"><!-- --></A><H3>getPrefix</H3><PRE>public java.lang.String <B>getPrefix</B>(<A HREF="../../../../../org/apache/jetspeed/portlet/PortletRequest.html" title="interface in org.apache.jetspeed.portlet">PortletRequest</A>&nbsp;request)</PRE><DL><DD>Returns the prefix associated with this command.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>returns the prefix</DL></DD></DL><HR><A NAME="setPrefix(org.apache.jetspeed.portlet.PortletRequest, java.lang.String)"><!-- --></A><H3>setPrefix</H3><PRE>public void <B>setPrefix</B>(<A HREF="../../../../../org/apache/jetspeed/portlet/PortletRequest.html" title="interface in org.apache.jetspeed.portlet">PortletRequest</A>&nbsp;request,                      java.lang.String&nbsp;prefix)</PRE><DL><DD>Sets the prefix associated with this command.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>String the prefix</DL></DD></DL><HR><A NAME="execute(org.apache.jetspeed.portlet.PortletRequest, com.ibm.wps.portlets.struts.ViewCommandExecutionContext)"><!-- --></A><H3>execute</H3><PRE>public void <B>execute</B>(<A HREF="../../../../../org/apache/jetspeed/portlet/PortletRequest.html" title="interface in org.apache.jetspeed.portlet">PortletRequest</A>&nbsp;request,                    <A HREF="../../../../../com/ibm/wps/portlets/struts/ViewCommandExecutionContext.html" title="class in com.ibm.wps.portlets.struts">ViewCommandExecutionContext</A>&nbsp;executionContext)             throws <A HREF="../../../../../org/apache/jetspeed/portlet/PortletException.html" title="class in org.apache.jetspeed.portlet">PortletException</A></PRE><DL><DD>Executes the given command given the request and response objects. This implementation should be called by all subclasses.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>request</CODE> - The request object<DD><CODE>executionContext</CODE> - the execution context object<DT><B>Throws:</B><DD><CODE><A HREF="../../../../../org/apache/jetspeed/portlet/PortletException.html" title="class in org.apache.jetspeed.portlet">PortletException</A></CODE> - if the request cannot fulfilled</DL></DD></DL><HR><A NAME="addAttribute(java.lang.Object, java.util.List)"><!-- --></A><H3>addAttribute</H3><PRE>protected static void <B>addAttribute</B>(java.lang.Object&nbsp;attribute,                                   java.util.List&nbsp;list)</PRE><DL><DD>Adds the attribute to the list.  Caller is assumed to have synchronized the list.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>attribute</CODE> - the attribute to add to the list<DD><CODE>list</CODE> - the array list to update</DL></DD></DL><HR><A NAME="removeAttribute(java.lang.Object, java.util.List)"><!-- --></A><H3>removeAttribute</H3><PRE>protected static void <B>removeAttribute</B>(java.lang.Object&nbsp;attribute,                                      java.util.List&nbsp;list)</PRE><DL><DD>Removes the attribute from the list.  Caller is assumed to have synchronized the list.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>attribute</CODE> - the attribute<DD><CODE>list</CODE> - the array list to update</DL></DD></DL><HR><A NAME="getLastModified(org.apache.jetspeed.portlet.PortletRequest)"><!-- --></A><H3>getLastModified</H3><PRE>public long <B>getLastModified</B>(<A HREF="../../../../../org/apache/jetspeed/portlet/PortletRequest.html" title="interface in org.apache.jetspeed.portlet">PortletRequest</A>&nbsp;request)</PRE><DL><DD>Returns the last modified time.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>request</CODE> - the request object<DT><B>Returns:</B><DD>returns the last modified time</DL></DD></DL><HR><A NAME="setLastModified(org.apache.jetspeed.portlet.PortletRequest, long)"><!-- --></A><H3>setLastModified</H3><PRE>public void <B>setLastModified</B>(<A HREF="../../../../../org/apache/jetspeed/portlet/PortletRequest.html" title="interface in org.apache.jetspeed.portlet">PortletRequest</A>&nbsp;request,                            long&nbsp;lastModified)</PRE><DL><DD>Sets the last modified time.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>request</CODE> - the request object<DD><CODE>lastModified</CODE> - the last modified time</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=3 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;<A HREF="#main"><FONT CLASS="NavBarFont1Rev"><B>Class</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="../../../../../serialized-form.html"><FONT CLASS="NavBarFont1"><B>Serialized</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="../../../../../com/ibm/wps/portlets/struts/WpsStrutsViewActionCommand.html" title="class in com.ibm.wps.portlets.struts"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../../../../com/ibm/wps/portlets/struts/WpsStrutsViewErrorCommand.html" title="class in com.ibm.wps.portlets.struts"><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="WpsStrutsViewCommand.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;<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><A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= --><HR></BODY></HTML>

⌨️ 快捷键说明

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