Storing and Passing Data Through Beans
Page backing beans (for example Welcome.java) are
instantiated only while the page is rendered.
If you want to store data (for example user input) that persists from one
page to another you must use one of the following:
- Request bean: Stores information only needed by the next page
- Session bean: Stores information needed throughout the user's
session
- Application bean: Stores information that applies to all user
sessions
The IDE automatically creates one of each of these beans:
- RequestBean1.java
- SessionBean1.java
- ApplicationBean1.java