Home > Guides > Core Developers Guide > Annotations > AnnotationWorkflowInterceptor

AnnotationWorkflowInterceptor Interceptor

Error formatting macro: snippet: java.lang.IndexOutOfBoundsException: Index: 20, Size: 20

Examples

Error formatting macro: snippet: java.lang.IndexOutOfBoundsException: Index: 20, Size: 20

Configure a stack in struts.xml that replaces the PrepareInterceptor with the AnnotationWorkflowInterceptor:

<interceptor-stack name="annotatedStack">
	<interceptor-ref name="static-params"/>
	<interceptor-ref name="params"/>
	<interceptor-ref name="conversionError"/>
	<interceptor-ref name="annotationWorkflow"/>
</interceptor-stack>

Given an Action, AnnotatedAction, add a reference to the AnnotationWorkflowInterceptor interceptor.

<action name="AnnotatedAction" class="com.examples.AnnotatedAction">
   <interceptor-ref name="annotationWorkflow"/>
   <result name="success" type="freemarker">good_result.ftl</result>
</action>
Error formatting macro: snippet: java.lang.IndexOutOfBoundsException: Index: 20, Size: 20