spring-framework / org.springframework.validation.support / BindingAwareModelMap / <init>

<init>

BindingAwareModelMap()

Subclass of org.springframework.ui.ExtendedModelMap that automatically removes a org.springframework.validation.BindingResult object if the corresponding target attribute gets replaced through regular Map operations.

This is the class exposed to handler methods by Spring MVC, typically consumed through a declaration of the org.springframework.ui.Model interface. There is no need to build it within user code; a plain org.springframework.ui.ModelMap or even a just a regular Map with String keys will be good enough to return a user model.

Author
Juergen Hoeller

Since
2.5.6

See Also
org.springframework.validation.BindingResult