It seems that in order to define a json result for a struts 2 action, you have to define it seperately for each action, in the following way:
<action name="someJsonAction" class="com.something.Struts2Action">
<result type="json">
<param name="noCache">true</param>
<param name="excludeNullProperties">true</param>
<param name="root">jsonString</param>
</result>
</action>
Is it possible to add this as a global result to a package, so that I won't have to include the 3 parameters (noCache, excludeNullProperties, and root) with each action, and instead I can just define a result named 'json' and it would know to inherit those 3 parameters which I described?
Thanks.