[cvs] expresso commit by lhamel: use string const
JCorporate Ltd
jcorp at jcorporate.com
Sat Jan 29 20:51:18 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.24
retrieving revision 1.25
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.24 -r1.25
--- 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,6 +103,7 @@
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
@@ -237,7 +238,7 @@
}
ConfigManager.setRequest(request);
- Object o = GenericSession.getAttribute(request, "CurrentLogin");
+ Object o = GenericSession.getAttribute(request, CURRENT_LOGIN_KEY);
String currentUserName = User.UNKNOWN_USER;
String currentDB = "";
CurrentLogin cl = null;
@@ -343,7 +344,7 @@
request.getRemoteAddr(),
dbToLogin,
uid);
- GenericSession.setAttribute(request, "CurrentLogin", myLogin);
+ GenericSession.setAttribute(request, CURRENT_LOGIN_KEY, myLogin);
//The following line sets the particular instance of requestRegistry
//into the threadlocal context.
More information about the cvs
mailing list