1 20 21 package golfShop.presentation.xmlc.login; 22 23 import com.lutris.util.*; 24 import com.lutris.appserver.server.session.*; 25 26 33 class LoginState implements java.io.Serializable { 34 37 private static final String sessionDataName = "golfShop.login"; 38 39 42 public String lastError = null; 43 44 47 public String userName = null; 48 49 53 public static LoginState get(Session session) { 54 try { 55 LoginState obj = (LoginState)session.getSessionData().get(sessionDataName); 56 if (obj == null) { 57 obj = new LoginState(); 58 session.getSessionData().set(sessionDataName, obj); 59 } 60 return obj; 61 } catch (KeywordValueException except) { 62 throw new FatalExceptionError(except); 63 } 64 } 65 66 67 } 68 | Popular Tags |