THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
Most web applications will need to have some data that is shared across multiple pages. Perhaps you are creating a multi-page wizard, or you have an object that tracks the user's identify once logged in, or maybe you need to manage a shopping cart.
Div | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
Wiki Markup | ||||||||||||
|
| |||||||||||
|
Ordinary page-persistent fields won't work for this, since persistent fields are available only to a specific page, not shared across multiple pages.
...
A field holding an SSO is marked with the @SessionState annotation.
Wiki Markup |
---|
{float:right}
{panel:background=#eee|title=Contents}
{toc:minLevel=2|maxLevel=4}
{panel}
{float} |
Code Block | ||||
---|---|---|---|---|
| ||||
public class MyPage { @SessionState private ShoppingCart shoppingCart; . . . } |
...