|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectorg.apache.struts2.dispatcher.StrutsResultSupport
org.apache.struts2.dispatcher.PostbackResult
public class PostbackResult
A result that renders the current request parameters as a form which immediately submits a postback to the specified destination.
Parameters:
<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 |
| 构造方法详细信息 |
|---|
public PostbackResult()
| 方法详细信息 |
|---|
public void execute(com.opensymphony.xwork2.ActionInvocation invocation)
throws Exception
StrutsResultSupport 复制的描述StrutsResultSupport.doExecute(String, ActionInvocation) after optionally evaluating the
location as an OGNL evaluation.
com.opensymphony.xwork2.Result 中的 executeStrutsResultSupport 中的 executeinvocation - the execution state of the action.
Exception - if an error occurs while executing the result.public final void setActionMapper(ActionMapper mapper)
public final void setActionName(String actionName)
actionName - the action namepublic final void setCache(boolean cache)
true.
public final void setMethod(String method)
method - the methodpublic final void setNamespace(String namespace)
namespace - the namespacepublic final void setPrependServletContext(boolean prependServletContext)
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||