Annotation Interface Model
Annotates a
Controller
method or method parameter for constructing a model for
passing to a view or processing in a method.
On a method, it's the method to call to construct the model of a matching name.
On a parameter, it's the model itself.
If the model is not constructed via a matching method, it will be constructed via SmallRequestUtils.setModelFields(javax.servlet.http.HttpServletRequest, Class)
Any model that is not constructed is created (via default constructor or matching annotated method in the same class).
- Author:
- Matthew Tropiano
- See Also:
-
Optional Element Summary
-
Element Details
-
value
String valueName of the model. If no name is specified, "model" is used.- Returns:
- the name.
- Default:
- "model"
-