public class JsonResult
extends com.opensymphony.webwork.dispatcher.WebWorkResultSupport
This result will set the content type to 'application/javascript'.
More recent webwork libraries contain a slightly different implementation a JSON Result. This result was based on that implementation to (hopefully) allow for a clean upgrade path when the time comes to update webwork.
Constructor and Description |
---|
JsonResult() |
Modifier and Type | Method and Description |
---|---|
protected void |
doExecute(String finalDestination,
com.opensymphony.xwork.ActionInvocation actionInvocation) |
String |
getJsonString(com.opensymphony.xwork.ActionInvocation actionInvocation) |
void |
setJsonator(Jsonator<Object> jsonator) |
protected void doExecute(String finalDestination, com.opensymphony.xwork.ActionInvocation actionInvocation) throws Exception
doExecute
in class com.opensymphony.webwork.dispatcher.WebWorkResultSupport
Exception
public String getJsonString(com.opensymphony.xwork.ActionInvocation actionInvocation)
Copyright © 2003–2021 Atlassian. All rights reserved.