public class VtorJsonActionResult
extends java.lang.Object
implements jodd.madvoc.result.ActionResult<java.lang.String>
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
jsonResponseContentType
Defines response content type of returned json string.
|
protected jodd.madvoc.MadvocConfig |
madvocConfig |
| Constructor and Description |
|---|
VtorJsonActionResult() |
| Modifier and Type | Method and Description |
|---|---|
void |
render(jodd.madvoc.ActionRequest actionRequest,
java.lang.String resultValue) |
public static java.lang.String jsonResponseContentType
application/json.
If set to null response will be not set.
Some form plugins (as jquery form plugin) submits multipart form using hidden iframe, not using ajax. Therefore, Accept header does not contains application/json (since it is regular post and ajax). In this case change response content type to "text/html". Or disable iframe posting if possible.
@In @Scope(value=CONTEXT) protected jodd.madvoc.MadvocConfig madvocConfig
Copyright © 2003-present Jodd Team