Apache Struts 2 Documentation > Home > Guides > Core Developers Guide > Interceptors > Model Driven Interceptor
Added by digi9ten, last edited by Ted Husted on Sep 10, 2006  (view change)

Watches for ModelDriven actions and adds the action's model on to the value stack.

Note: The ModelDrivenInterceptor must come before the both StaticParametersInterceptor and ParametersInterceptor if you want the parameters to be applied to the model.

Note: The ModelDrivenInterceptor will only push the model into the stack when the model is not null, else it will be ignored.

Parameters

  • None

Extending the Interceptor

There are no known extension points to this interceptor.

Examples

<action name="someAction" class="com.examples.SomeAction">
    <interceptor-ref name="model-driven"/>
    <interceptor-ref name="basicStack"/>
    <result name="success">good_result.ftl</result>
</action>