THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
Code Block | ||||
---|---|---|---|---|
| ||||
<result type="json"> <param name="contentType">text/html</param> </result> |
Encoding
User can define encoding per result or base on default assigned to struts.i18n.encoding. To define encoding for given result add encoding param as below:
Code Block | ||||
---|---|---|---|---|
| ||||
<result type="json">
<param name="encoding">UTF-8</param>
</result>
|
Example
Setup Action
This simple action has some fields:
...