@SessionAttributes: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
(Created page with "=Internal= * Controller =Overview= <syntaxhighlight lang='java'> @Controller @SessionAttributes("sessionAttr1", "sessionAttr2...")
 
 
(One intermediate revision by the same user not shown)
Line 4: Line 4:


=Overview=
=Overview=
The class-level @SessionAttributes specifies any model objects that should be kept in session and made available across multiple requests.


<syntaxhighlight lang='java'>
<syntaxhighlight lang='java'>
Line 11: Line 13:
   // ...
   // ...
}
}
</syntaxhighlight lang='java'>
</syntaxhighlight>

Latest revision as of 23:59, 14 October 2018

Internal

Overview

The class-level @SessionAttributes specifies any model objects that should be kept in session and made available across multiple requests.

@Controller
@SessionAttributes("sessionAttr1", "sessionAttr2")
public class ...Controller {
   // ...
}