SpringSource/spring-framework — pull request #248 by backslash47 (2013-03-07 15:54:05+00:00)
Title: Fix scope of model attributes when including JSP

Prior to this commit, setting model attribute in controller of
included JSP would result in overwriting the value in parent model if
the set value was null.

This is because the method
DispatcherServlet.restoreAttributesAfterInclude restores after include
only those attributes that are currently present in request, but
setting the value to null in child controller leads to removing of the
attribute from request.

Now the removed attributes are added back after include.

Issue: SPR-10360

I have signed and agree to the terms of the SpringSource Individual
Contributor License Agreement.