36. Flash Attributes in Spring MVC

preview_player
Показать описание
Flash Attributes in Spring MVC
1. Efficient solution for the Post/Redirect/Get pattern.
2. Attributes are saved [in Session] temporarily before the redirect
3. Attributes are added to the Model of the target controller and are deleted [from Session] immediately.
Рекомендации по теме
Комментарии
Автор

CMIIW: In the video, you said the flash attribute is deleted after the page is rendered. But in actuality, the flash attribute is only available between 2 requests, which means, if after the first redirect, you make another redirect, the flash attribute is also deleted.

huyhalequoc