The Action implements ModelDriven to tell Struts which object should receive the form data.
: For more complex scenarios, the ScopedModelDrivenInterceptor can retrieve or store models in different scopes like session or request . xml to include or exclude specific features? Model Driven - Apache Struts Model Driven Interceptor In Struts2 Example
: The interceptor has a refreshModelBeforeResult parameter. Setting it to true is useful if you change the model instance (e.g., loading a new object from a database) during the action execution and want the new instance on the stack before the result is rendered. The Action implements ModelDriven to tell Struts which
To use this interceptor, your Action must implement the com.opensymphony.xwork2.ModelDriven interface and provide a getModel() method. Model Driven - Apache Struts : The interceptor
: The model object returned by getModel() must not be null; otherwise, the interceptor will ignore it and not push it onto the stack.