Home > Guides > Core Developers Guide > Interceptors > Scoped Model Driven Interceptor |

Apache Struts 2 Documentation
Scoped Model Driven Interceptor
Edit Page Browse Space Add Page Add News

An interceptor that enables scoped model-driven actions.

This interceptor only activates on actions that implement the ScopedModelDriven interface. If detected, it will retrieve the model class from the configured scope, then provide it to the Action.

## Parameters

- className - The model class name. Defaults to the class name of the object returned by the getModel() method.

- name - The key to use when storing or retrieving the instance in a scope. Defaults to the model class name.

- scope - The scope to store and retrieve the model. Defaults to 'request' but can also be 'session'.

## Extending the Interceptor

There are no known extension points for this interceptor.

## Examples