%
/**********************************************************************************
프로그램명 : dept_view.jsp
프로그램설명 :
작 성 자 : 조용준
작 성 일 : 04.07.06
최신변경일 :
***********************************************************************************/
%>
<%@ page contentType="text/html; charset=UTF-8" %>
<%@ page import="kr.co.kihyun.beans.user.HttpSSOLogin" %>
<%@ page import="kr.co.kihyun.text.html.ServletUtil" %>
<%@ page import="kr.co.kihyun.lang.Encoder" %>
<%@ page import="kr.co.kihyun.moumi.Moumi" %>
<%@ page import="kr.co.kihyun.lang.MString"%>
<%@ page import="java.net.URLEncoder" %>
<%@ include file="/totsys/common/inc/sec/secure.inc.jsp" %>
<%
try{
/***** user Login check *****************/
if(!HttpSSOLogin.isLogin(request)){
String connURL="parent.location='/totsys/login/login.jsp';";
out.println(ServletUtil.getJavaScript(connURL));
return;
}
/********** session내의 userId **********/
String usID = "";
usID = HttpSSOLogin.getLoginID(request);
/****** Parameter ******/
String deptID = "";
String findOption = "";
String findWord = "";
String dirPath = URLEncoder.encode("부서관리");
String uri = URLEncoder.encode("./dept_list.jsp?findOption="+findOption+"&findWord="+findWord);
deptID = clearXSS(Encoder.toJava(request.getParameter("deptID")),"");
/****** dept modify data get ******/
String[] distIDList = null;
String name = "";
String addr = "";
String phone = "";
String passcode = "";
String recoImg = "";
String partID = "";
String upperName = "";
String location = "";
partRegist.executeQuery();
distIDList = partRegist.getDistIDList();
//v2. 13.SQL 삽입 : deptView.executeQuery()에서 prepare SQL 문으로 되어 있다.
deptView.executeQuery(deptID);
//================
name = deptView.getName();
addr = MString.checkNull(deptView.getAddr());
phone = MString.checkNull(deptView.getPhone());
passcode = deptView.getPasscode();
recoImg = MString.checkNull(deptView.getRecoImg());
upperName = deptView.getUpperDeptName();
location = MString.checkNull(deptView.getLocation(),"mnd");
if(location.equals("1")) location="mnd";
else if(location.equals("2")) location="jcs";
%>
<%=Moumi.getTitle()%>
|
|
|
<%@ include file="/totsys/common/inc/buttom/buttom.jsp" %>
<%
}catch(Exception ex){
//38.오류메세지를 통한 정보 노출(getMessage)_CWE-209 : Update by YOUNGJUN,CHO
ex.printStackTrace();
//out.println(ex);
//out.println("Can't contact servlet runner
Message : "+ex.getMessage()+"");
//out.println("");
//================================================
}finally{
}
%>