diff --git a/path.txt b/path.txt index 65f83956..8cff3203 100644 --- a/path.txt +++ b/path.txt @@ -1 +1 @@ -eclipse=D:\thkim_home\eGovFrameDev-3.8.0-64bit\geoinfo\user\eclipse \ No newline at end of file +eclipse=R:\eclipse\eclipse \ No newline at end of file diff --git a/src/main/java/geoinfo/main/main/MainController.java b/src/main/java/geoinfo/main/main/MainController.java index c9147ab9..2952e393 100644 --- a/src/main/java/geoinfo/main/main/MainController.java +++ b/src/main/java/geoinfo/main/main/MainController.java @@ -179,7 +179,12 @@ public class MainController { ModelAndView mv = new ModelAndView(); - int nCls = MyUtil.getIntegerFromObject(request.getSession().getAttribute("CLS")); + int nCls = -1; + Object oCls = request.getSession().getAttribute("CLS"); + if( oCls != null ) { + nCls = MyUtil.getIntegerFromObject(oCls); + } + mv.addObject("cls", nCls); String src = request.getParameter("src"); diff --git a/src/main/webapp/WEB-INF/views/home/index.jsp b/src/main/webapp/WEB-INF/views/home/index.jsp index cf485f56..f4afa48f 100644 --- a/src/main/webapp/WEB-INF/views/home/index.jsp +++ b/src/main/webapp/WEB-INF/views/home/index.jsp @@ -30,7 +30,7 @@ var loginCheck = '${userId}' == "" ? false : true; var popupFlag = Cookies.get("popupFlag"); if (loginCheck && popupFlag !== "N") { - if(('${userId}' == 'admin_user' || ${cls} === 65535 )){ + if(('${userId}' == 'admin_user' || "${cls}" === "65535" )){ openPop(); }