<% /************************************************************@@ * Program Name : top.jsp * Description : ½Ã½ºÅÛ °ü¸®ÀÚ Å¾ * Author : * Create Date : * History : @@************************************************************/ %> <%@ page contentType="text/html; charset=euc-kr" import="java.net.URLDecoder" import="java.util.List" import="javax.jdo.Extent" import="javax.jdo.PersistenceManager" import="javax.jdo.Query" import="kr.co.kihyun.beans.entity.*" import="kr.co.kihyun.beans.entity.util.*" import="kr.co.kihyun.beans.totsys.menu.MenuBean" import="kr.co.kihyun.beans.user.HttpSSOLogin" import="kr.co.kihyun.beans.user.User" import="kr.co.kihyun.lang.MInteger" import="kr.co.kihyun.moumi.MoumiConfig" import="kr.co.kihyun.text.html.ServletUtil"%> <%@ include file="/totsys/common/inc/sec/secure.inc.jsp"%> <% PersistenceManager pm = new MPersistenceManager(PMF.get().getPersistenceManager()); try{ /*********** User HttpSSOLogin check ***********/ String connURL="location='/totsys/login/login.jsp';"; if(!HttpSSOLogin.isLogin(request)){ out.println(ServletUtil.alert("ÀÛ¾÷½Ã°£ÀÌ Á¾·áµÇ¾ú½À´Ï´Ù.\\n ´Ù½Ã·Î±×ÀÎ ÇϽñ⠹ٶø´Ï´Ù.")); out.println(ServletUtil.getJavaScript(connURL)); return; } /********** session³»ÀÇ userId **********/ String usID = HttpSSOLogin.getLoginID(request); String usName = HttpSSOLogin.getUserName(request); int sysAuth = HttpSSOLogin.getSysAuth(request); if(sysAuth != MoumiConfig.SUB_SYSADM && sysAuth != MoumiConfig.SYSADM){ out.println(ServletUtil.alert("½Ã½ºÅÛ±ÇÇÑÀÌ ÃæºÐÇÏÁö ¾Ê½À´Ï´Ù.\\n ´Ù½Ã·Î±×ÀÎ ÇϽñ⠹ٶø´Ï´Ù.")); out.println(ServletUtil.getJavaScript(connURL)); return; } MenuBean orgMenu = new MenuBean(request, "/totsys/sysadm/org/org_view.jsp"); List categoryList = pm.getObjectById(Category.class, Category.ID_BOARD).getChildCategories(); %>
<% for(Category boardCategory : categoryList) { %> <% } %>
<%= boardCategory.getName() %>
<% }catch(Exception ex){ ex.printStackTrace(); out.println(kr.co.kihyun.text.html.ServletUtil.getJavaScript("location='/servlet/kr.co.kihyun.beans.user.HttpSSOLogin?mode=logout';")); }finally{ pm.close(); } %>