AnnotationWorkflowInterceptor Interceptor
Wiki Markup |
---|
{snippet:id=javadoc|javadoc=true|url=com.opensymphony.xwork2.interceptor.annotations.AnnotationWorkflowInterceptor} |
Examples
Wiki Markup |
---|
{snippet:id=javacode|javadoc=true|lang=java|url=com.opensymphony.xwork2.interceptor.annotations.AnnotationWorkflowInterceptor} |
Configure a stack in struts.xml that replaces the PrepareInterceptor with the AnnotationWorkflowInterceptor:
Code Block |
---|
|
<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.
Code Block |
---|
|
<action name="AnnotatedAction" class="com.examples.AnnotatedAction">
<interceptor-ref name="annotationWorkflow"/>
<result name="success" type="freemarker">good_result.ftl</result>
</action>
|
Wiki Markup |
---|
{snippet:id=example|javadoc=true|url=com.opensymphony.xwork2.interceptor.annotations.AnnotationWorkflowInterceptor} |