public class ReturnableRedirectResult
extends org.apache.struts2.dispatcher.ServletRedirectResult
| Constructor and Description |
|---|
ReturnableRedirectResult() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doExecute(String finalLocation,
com.opensymphony.xwork2.ActionInvocation invocation)
The redirect can be bypassed by using one of the following modes as the value when passing the
FreemarkerRequestDispatcherPageFilter.BAMBOO_SUCCESS_RETURN_MODE parameter in the query string:
FreemarkerRequestDispatcherPageFilter.BAMBOO_SUCCESS_RETURN_MODE_JSON
Sends back JSON Object found in the response with content-type JSONResult.contentType
FreemarkerRequestDispatcherPageFilter.BAMBOO_SUCCESS_RETURN_MODE_JSON_AS_HTML
Sends back JSON Object found in the response with content-type JSONAsHTMLResult.CONTENT_TYPE
|
void |
setObjectFactory(com.opensymphony.xwork2.ObjectFactory objectFactory) |
addParameter, execute, getProhibitedResultParams, handle, sendRedirect, setActionMapper, setAnchor, setPrependServletContext, setStatusCode, setSuppressEmptyParameters, setUrlHelperprotected void doExecute(String finalLocation, com.opensymphony.xwork2.ActionInvocation invocation) throws Exception
FreemarkerRequestDispatcherPageFilter.BAMBOO_SUCCESS_RETURN_MODE parameter in the query string:
FreemarkerRequestDispatcherPageFilter.BAMBOO_SUCCESS_RETURN_MODE_JSONJSONResult.contentTypeFreemarkerRequestDispatcherPageFilter.BAMBOO_SUCCESS_RETURN_MODE_JSON_AS_HTMLJSONAsHTMLResult.CONTENT_TYPEdoExecute in class org.apache.struts2.dispatcher.ServletRedirectResultfinalLocation - invocation - Exceptionpublic void setObjectFactory(com.opensymphony.xwork2.ObjectFactory objectFactory)
Copyright © 2016 Atlassian Software Systems Pty Ltd. All rights reserved.