Home » xwork-2.1.5 » com.opensymphony » xwork2 » interceptor » [javadoc | source]
public class: ModelDrivenInterceptor [javadoc | source]

All Implemented Interfaces:

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.

Interceptor parameters:

Extending the interceptor:

There are no known extension points to this interceptor.

Example code:

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

Nested Class Summary:
protected static class  ModelDrivenInterceptor.RefreshModelBeforeResult  Refreshes the model instance on the value stack, if it has changed 
Field Summary
protected  boolean refreshModelBeforeResult     
Method from com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor Summary:
intercept,   setRefreshModelBeforeResult
Methods from com.opensymphony.xwork2.interceptor.AbstractInterceptor:
destroy,   init,   intercept
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor Detail:
 public String intercept(ActionInvocation invocation) throws Exception 
 public  void setRefreshModelBeforeResult(boolean val)