Registration.java.
| The listener method.
| ||||
| cycle.getPage() retrieves the requested page object, Welcome, from the page pool.
Page objects are always of the type of their page class. | ||||
| Copy the User in the Home page to the Welcome page before detaching the Home page from the request. | ||||
| Activate the Welcome page. This will detach the Home page from the current request and attach to Welcome page instead. | ||||
User.java.
package devguide.personalizedwelcome;
public class User
{
private String _title;
private String _firstName;
private String _lastName;
public String getFirstName()
{
return _firstName;
}
public String getLastName()
{
return _lastName;
}
public void setFirstName(String string)
{
_firstName = string;
}
public void setLastName(String string)
{
_lastName = string;
}
public String getTitle()
{
return _title;
}
public void setTitle(String string)
{
_title = string;
}
}
|
User is a plain Javabeans class that is a model value object.