<% /********************************************************************************** ÇÁ·Î±×·¥¸í : popup_board_modify.jsp ÇÁ·Î±×·¥¼³¸í : Áý°è¹®¼­¿¡°üÇÑ °øÁö ±Û ¾²±â ÀÛ ¼º ÀÚ : °­ ¿ø Áß ÀÛ ¼º ÀÏ : 2004. 06.07 ÃֽꝰæÀÏ : 2005. 05.11 ***********************************************************************************/ %> <%@ page contentType="text/html; charset=euc-kr"%> <%@ page import="java.util.Map.Entry"%> <%@ page import="java.util.List"%> <%@ page import="kr.co.kihyun.text.html.ServletUtil"%> <%@ page import="kr.co.kihyun.lang.MInteger"%> <%@ page import="kr.co.kihyun.beans.user.HttpSSOLogin" import="kr.co.kihyun.lang.MLong" import="javax.jdo.PersistenceManager" import="javax.jdo.Transaction" import="javax.jdo.Transaction" import="kr.co.kihyun.beans.entity.util.*" import="kr.co.kihyun.beans.entity.TotDoc" import="kr.co.kihyun.beans.entity.Board"%> <%@ include file="/totsys/common/inc/sec/secure.inc.jsp"%> <% PersistenceManager pm = new MPersistenceManager(PMF.get().getPersistenceManager()); Transaction tx = pm.currentTransaction(); try{ /*********** User HttpSSOLogin check ***********/ if(!HttpSSOLogin.isLogin(request)){ String connURL="opener.location='/totsys/login/login.jsp';"; out.println(ServletUtil.getJavaScript(connURL)); out.println(ServletUtil.getJavaScript("window.close();")); return; } /********** session³»ÀÇ userId **********/ String usID = HttpSSOLogin.getLoginID(request); /****** Parameter ******/ Long docID = MLong.parseLong(request.getParameter("docID"),null); Long boardID = MLong.parseLong(request.getParameter("boardID"),null); String strPage = clearXSS(request.getParameter("strPage"),""); String findOption = clearXSS(request.getParameter("findOption"),""); String findWord = clearXSS(request.getParameter("findWord"),""); tx.begin(); /****** Doc list data get ******/ TotDoc totDoc = pm.getObjectById(TotDoc.class, docID); String docName = totDoc.getName(); String regID = totDoc.getUser(pm).getId(); /****** º»ÀÎ À¯¹« ó¸® ******/ boolean isManager = false; if(usID.equals(regID)){ isManager = true; } /*********** Board View vlaues ***********/ Board board = null; String boardTitle = ""; String boardContents = ""; String usrFilenames = ""; String svrFilenames = ""; String boardGroupID = ""; int fileCount = 0; board = boardID == null ? null : pm.getObjectById(Board.class, boardID); boardTitle = board.getTitle(); boardContents=board.getContents(); for (Entry> entry : board.getAttachments().entrySet()) { usrFilenames += entry.getKey() + ";"; svrFilenames += entry.getKey() + ";"; } fileCount = board.getAttachments().size(); boardGroupID = board.getCategory().getId(); tx.rollback(); session.setAttribute("modifyTargetURI", "opener.location='/totsys/total/doc_view.jsp?docID="+docID+"&strPage="+strPage+"&findOption="+findOption+"&findWord="+findWord+"'"); %> °øÁö»çÇ×-º¯°æ

 

 

 

  [<%= docName %> ]
     Á¦      ¸ñ

    ³»      ¿ë
     ÆÄÀÏ÷ºÎ
  

 

 

 

<% }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{ if(tx.isActive()) tx.rollback(); pm.close(); } %>