Step 08
SessionData is an object to store userName and sessionExists flag between pages, so if a session doesn't exist then user will be redirected t Login page.
package org.example.TSA.value;
public class SessionData {
private String _userName;
private boolean sessionExists;
/**
* @return the sessionExists
*/
public boolean isSessionExists() {
return sessionExists;
}
/**
* @param exists the sessionExists to set
*/
public void setSessionExists(boolean exists) {
sessionExists = exists;
}
/**
* @return the userName
*/
public String getUserName() {
return _userName;
}
/**
* @param userName the userName to set
*/
public void setUserName(String userName) {
this._userName = userName;
}
}
20 September 2007
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment