org.apache.struts2

## Interface ModelDriven<T>

- All Known Subinterfaces:
    ModelDriven<T>, ScopedModelDriven<T>, ScopedModelDriven<T>

      public interface ModelDriven<T>

  ModelDriven Actions provide a model object to be pushed onto the ValueStack in addition to the Action itself, allowing a FormBean type approach like Struts.
  Author:
    Jason Carreira

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `T` | `getModel()` Gets the model to be pushed onto the ValueStack instead of the Action itself.

- - ### Method Detail

    - #### getModel

          T getModel()

      Gets the model to be pushed onto the ValueStack instead of the Action itself.

      Please be aware that all setters and getters of every depth on the object returned by this method are available for user parameter injection!

      Returns:
        the model

Copyright © 2000–2025 Apache Software Foundation. All rights reserved.