Hi:
I am trying to figure out why I get a NullPointerException when I try to
retrieve the 'User' object from 'RunData'. The User object is missing
from the RunData!! I did the following during
login:
user = TurbineSecurity.getAuthenticatedUser(
userName, password);
data.setUser(user);
user.setHasLoggedIn(new Boolean(true));
user.updateLastLogin();
user.setTemp(
"aUserAccountInfo",
administerUserAccount.getUserAccountInfo(userName));
data.save();
and I am trying to do the following at logout:
public class EsparesLogout extends VelocityAction
{
public void doPerform(RunData data, Context context) throws Exception
{
User user = null;
AUserAccountInfo aUserAccountInfo = null;
user = data.getUser();
aUserAccountInfo = (AUserAccountInfo)
user.getTemp("aUserAccountInfo");
data.setMessage(
aUserAccountInfo.salutation + " " + aUserAccountInfo.lastName
+ ", thank you for using eSpares");
user.setHasLoggedIn(new Boolean(false));
setTemplate(data, "Login.vm");
}
}
Dan Eyassu
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>