In Tapestry, an object that is made available for every page of the application is termed Application State Object (ASO). Usually, this is some kind of object we create specially for the purpose of storing some set of data in an organized way. Say, we can have a User
class for storing information about the application's user. It can be as simple as this:
package com.packtpub.t5first.util; public class User { private String firstName = "John"; private String lastName = "Smith"; public String getFirstName() { return firstName; } public void setFirstName(String firstName) { this.firstName = firstName; } public String getLastName() { return lastName; } public void setLastName(String lastName) { this.lastName = lastName; } }