1) Define a package with the name of your result type and the class that will be called when the action returns this result type.
<package name="default" namespace="/" extends="struts-default">
<result-types>
<result-type name="myResultType" class="com.awesome.MyResult"/>
</result-types>
.... actions and other things...
</package>
2) Introduce the result type class Struts 2:
package com.awesome;
public class MyResult extends StrutsResultSupport{
}
This is a good description of this in Dave Newton's Apache Struts 2 Web Application Development. I know this class is not implemented, but I'm sure you can find what you need from here.
source
share