Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Adds section about encoding

...

Code Block
XML
XML
<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
XML
XML

<result type="json">
  <param name="encoding">UTF-8</param>
</result>

Example

Setup Action

This simple action has some fields:

...