| org.springframework.web.bind.annotation.SessionAttributes
SessionAttributes | public @interface SessionAttributes(Code) | | Annotation that indicates the session attributes that a specific handler
uses. This will typically list the names of model attributes which should be
transparently stored in the session or some conversational storage,
serving as form-backing beans. Declared at the type level, applying
to the model attributes that the annotated handler class operates on.
author: Juergen Hoeller since: 2.5 |
Field Summary | |
Class[] | types The types of session attributes in the model, to be stored in the
session or some conversational storage. | String[] | value The names of session attributes in the model, to be stored in the
session or some conversational storage.
Note: This indicates the model attribute names. |
types | Class[] types(Code) | | The types of session attributes in the model, to be stored in the
session or some conversational storage. All model attributes of this
type will be stored in the session, regardless of attribute name.
|
value | String[] value(Code) | | The names of session attributes in the model, to be stored in the
session or some conversational storage.
Note: This indicates the model attribute names. The session attribute
names may or may not match the model attribute names; applications should
not rely on the session attribute names but rather operate on the model only.
|
|
|