[cvs] expresso commit by lhamel: use string const
JCorporate Ltd
jcorp at jcorporate.com
Sat Jan 29 20:55:03 UTC 2005
Log Message:
-----------
use string const
Modified Files:
--------------
expresso/expresso-web/WEB-INF/src/com/jcorporate/expresso/core/servlet:
CheckLogin.java
Revision Data
-------------
Index: CheckLogin.java
===================================================================
RCS file: /home/javacorp/.cvs/expresso/expresso/expresso-web/WEB-INF/src/com/jcorporate/expresso/core/servlet/CheckLogin.java,v
retrieving revision 1.25
retrieving revision 1.26
diff -Lexpresso-web/WEB-INF/src/com/jcorporate/expresso/core/servlet/CheckLogin.java -Lexpresso-web/WEB-INF/src/com/jcorporate/expresso/core/servlet/CheckLogin.java -u -r1.25 -r1.26
--- expresso-web/WEB-INF/src/com/jcorporate/expresso/core/servlet/CheckLogin.java
+++ expresso-web/WEB-INF/src/com/jcorporate/expresso/core/servlet/CheckLogin.java
@@ -103,7 +103,6 @@
final public class CheckLogin {
private static Logger log = Logger.getLogger(CheckLogin.class);
static CheckLogin theInstance = new CheckLogin();
- public static final String CURRENT_LOGIN_KEY = "CurrentLogin";
/**
* Default Constructor.... Simply sets up the Log It should not be called
@@ -238,7 +237,7 @@
}
ConfigManager.setRequest(request);
- Object o = GenericSession.getAttribute(request, CURRENT_LOGIN_KEY);
+ Object o = GenericSession.getAttribute(request, CurrentLogin.LOGIN_KEY);
String currentUserName = User.UNKNOWN_USER;
String currentDB = "";
CurrentLogin cl = null;
@@ -344,7 +343,7 @@
request.getRemoteAddr(),
dbToLogin,
uid);
- GenericSession.setAttribute(request, CURRENT_LOGIN_KEY, myLogin);
+ GenericSession.setAttribute(request, CurrentLogin.LOGIN_KEY, myLogin);
//The following line sets the particular instance of requestRegistry
//into the threadlocal context.
More information about the cvs
mailing list