org.apache.struts2.dispatcher
类 PostbackResult

java.lang.Object
  继承者 org.apache.struts2.dispatcher.StrutsResultSupport
      继承者 org.apache.struts2.dispatcher.PostbackResult
所有已实现的接口:
com.opensymphony.xwork2.Result, Serializable, StrutsStatics

public class PostbackResult
extends StrutsResultSupport

A result that renders the current request parameters as a form which immediately submits a postback to the specified destination.

Parameters:

Examples:

 
 <action name="registerThirdParty" >
   <result type="postback">https://www.example.com/register</result>
 </action>

 <action name="registerThirdParty" >
   <result type="postback">
     <param name="namespace">/secure</param>
     <param name="actionName">register2</param>
   </result>
 </action>
 
 

另请参见:
序列化表格

字段摘要
 
从类 org.apache.struts2.dispatcher.StrutsResultSupport 继承的字段
DEFAULT_PARAM
 
从接口 org.apache.struts2.StrutsStatics 继承的字段
HTTP_REQUEST, HTTP_RESPONSE, PAGE_CONTEXT, SERVLET_CONTEXT, SERVLET_DISPATCHER, STRUTS_ACTION_TAG_INVOCATION, STRUTS_PORTLET_CONTEXT
 
构造方法摘要
PostbackResult()
           
 
方法摘要
 void execute(com.opensymphony.xwork2.ActionInvocation invocation)
          Implementation of the execute method from the Result interface.
 void setActionMapper(ActionMapper mapper)
           
 void setActionName(String actionName)
          Sets the name of the destination action.
 void setCache(boolean cache)
          Stores the option to cache the rendered intermediate page.
 void setMethod(String method)
          Sets the method of the destination action.
 void setNamespace(String namespace)
          Sets the namespace of the destination action.
 void setPrependServletContext(boolean prependServletContext)
           
 
从类 org.apache.struts2.dispatcher.StrutsResultSupport 继承的方法
getLastFinalLocation, getLocation, setEncode, setLocation, setParse
 
从类 java.lang.Object 继承的方法
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

PostbackResult

public PostbackResult()
方法详细信息

execute

public void execute(com.opensymphony.xwork2.ActionInvocation invocation)
             throws Exception
从类 StrutsResultSupport 复制的描述
Implementation of the execute method from the Result interface. This will call the abstract method StrutsResultSupport.doExecute(String, ActionInvocation) after optionally evaluating the location as an OGNL evaluation.

指定者:
接口 com.opensymphony.xwork2.Result 中的 execute
覆盖:
StrutsResultSupport 中的 execute
参数:
invocation - the execution state of the action.
抛出:
Exception - if an error occurs while executing the result.

setActionMapper

public final void setActionMapper(ActionMapper mapper)

setActionName

public final void setActionName(String actionName)
Sets the name of the destination action.

参数:
actionName - the action name

setCache

public final void setCache(boolean cache)
Stores the option to cache the rendered intermediate page. The default is true.


setMethod

public final void setMethod(String method)
Sets the method of the destination action.

参数:
method - the method

setNamespace

public final void setNamespace(String namespace)
Sets the namespace of the destination action.

参数:
namespace - the namespace

setPrependServletContext

public final void setPrependServletContext(boolean prependServletContext)