package jeus_jspwork._moniter._environment;

import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import java.util.Hashtable;
import java.util.Enumeration;
import org.kldp.ebmsh.moniter.persistant.EbmsMoniterManager;
import java.util.List;
import org.kldp.ebmsh.moniter.persistant.DocumentIdInfo;
import org.kldp.ebmsh.config.EbmsConstants;

public final class _500_environmentView_5fjsp extends jeus.servlet.jsp2.runtime.HttpJspBase
    implements jeus.servlet.jsp2.runtime.JspSourceDependent {

  private static java.util.Vector _jspx_dependants;

  public java.util.List getDependants() {
    return _jspx_dependants;
  }

  public void _jspService(HttpServletRequest request, HttpServletResponse response)
        throws java.io.IOException, ServletException {

    JspFactory _jspxFactory = null;
    PageContext pageContext = null;
    HttpSession session = null;
    ServletContext application = null;
    ServletConfig config = null;
    JspWriter out = null;
    Object page = this;
    JspWriter _jspx_out = null;
    PageContext _jspx_page_context = null;


    try {
      _jspxFactory = JspFactory.getDefaultFactory();
      response.setContentType("text/html; charset=euc-kr");
      pageContext = _jspxFactory.getPageContext(this, request, response,
      			null, true, 8192, true);
      _jspx_page_context = pageContext;
      application = pageContext.getServletContext();
      config = pageContext.getServletConfig();
      session = pageContext.getSession();
      out = pageContext.getOut();
      _jspx_out = out;

      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("<!--검색-->\r\n");
      out.write("<table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"1\"\r\n");
      out.write("\tbgcolor=\"#CDDCED\">\r\n");
      out.write("\t<tr>\r\n");
      out.write("\t\t<td\r\n");
      out.write("\t\t\tstyle=\"PADDING-LEFT: 10px; PADDING-RIGHT: 20px; PADDING-TOP: 5px; PADDING-BOTTOM: 5px;\"\r\n");
      out.write("\t\t\tbgcolor=\"#FFFFFF\">\r\n");
      out.write("\t\t\t<table width=\"100%\" border=\"0\" align=\"center\" cellpadding=\"0\"\r\n");
      out.write("\t\t\t\tcellspacing=\"0\">\r\n");
      out.write("\t\t\t\t<tr>\r\n");
      out.write("\t\t\t\t\t<td width=\"15\">\r\n");
      out.write("\t\t\t\t\t\t<img src=\"");
      out.print(request.getContextPath());
      out.write("/image/search/icon_arrow.gif\" width=\"11\" height=\"11\">\r\n");
      out.write("\t\t\t\t\t</td>\r\n");
      out.write("\t\t\t\t\t<td>\r\n");
      out.write("\t\t\t\t\t\t<span class=\"style2\">Bizbox 환경 정보</span>\r\n");
      out.write("\t\t\t\t\t</td>\r\n");
      out.write("\t\t\t\t</tr>\r\n");
      out.write("\t\t\t</table>\r\n");
      out.write("\t\t</td>\r\n");
      out.write("\t</tr>\r\n");
      out.write("</table>\r\n");
      out.write("\r\n");
      out.write("<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\r\n");
      out.write("\t<tr>\r\n");
      out.write("\t\t<td height=\"5\"></td>\r\n");
      out.write("\t</tr>\r\n");
      out.write("\t<tr>\r\n");
      out.write("\t\t<td style=\"PADDING-LEFT: 20px; PADDING-RIGHT: 20px; PADDING-TOP: 5px; PADDING-BOTTOM: 5px;\" bgcolor=\"#F7F7F7\">\r\n");
      out.write("\t\t\t<div class=\"ContentArea\">\r\n");
      out.write("\t\t\t\t<div id=\"EnvironmentBizboxInfo\">\r\n");
      out.write("\t\t\t\t\t<ul>\r\n");
      out.write("\t\t\t\t\t\t<li><span class=\"EnvironmentBizboxInfoLabel\">Bizbox 설치 경로 </span>: ");
      out.print(EbmsConstants.bizboxDirectory);
      out.write("</li>\r\n");
      out.write("\t\t\t\t\t\t<li><span class=\"EnvironmentBizboxInfoLabel\">CPA 경로  </span>: ");
      out.print(EbmsConstants.cpaPath);
      out.write("\r\n");
      out.write("\t\t\t\t\t\t<li><span class=\"EnvironmentBizboxInfoLabel\">메시지 저장 경로  </span>: ");
      out.print(EbmsConstants.messagePath);
      out.write("\r\n");
      out.write("\t\t\t\t\t\t<li><span class=\"EnvironmentBizboxInfoLabel\">Queue connection factory </span>: ");
      out.print(EbmsConstants.queueConnectionFactoryName);
      out.write("\r\n");
      out.write("\t\t\t\t\t\t<li><span class=\"EnvironmentBizboxInfoLabel\">Queue JNDI header </span>: ");
      out.print(EbmsConstants.queueJNDIHeaderName);
      out.write("\r\n");
      out.write("\t\t\t\t\t\t<li><span class=\"EnvironmentBizboxInfoLabel\">ApplicationResult queue </span>: ");
      out.print(EbmsConstants.applicationResultQueueName);
      out.write("\r\n");
      out.write("\t\t\t\t\t\t<li><span class=\"EnvironmentBizboxInfoLabel\">Tracker queue </span>: ");
      out.print(EbmsConstants.trackerQueueName);
      out.write("\r\n");
      out.write("\t\t\t\t\t\t<li><span class=\"EnvironmentBizboxInfoLabel\">Datasource </span>: ");
      out.print(EbmsConstants.dataSourceName);
      out.write("\r\n");
      out.write("\t\t\t\t\t</ul>\r\n");
      out.write("\t\t\t\t</div>\r\n");
      out.write("\t\t\t</div>\r\n");
      out.write("\t\t</td>\r\n");
      out.write("\t</tr>\r\n");
      out.write("</table>\r\n");
      out.write("\r\n");
      out.write("<br/>\r\n");
      out.write("\t\r\n");
      out.write("<table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"1\"\r\n");
      out.write("\tbgcolor=\"#CDDCED\">\r\n");
      out.write("\t<tr>\r\n");
      out.write("\t\t<td\r\n");
      out.write("\t\t\tstyle=\"PADDING-LEFT: 10px; PADDING-RIGHT: 20px; PADDING-TOP: 5px; PADDING-BOTTOM: 5px;\"\r\n");
      out.write("\t\t\tbgcolor=\"#FFFFFF\">\r\n");
      out.write("\t\t\t<table width=\"100%\" border=\"0\" align=\"center\" cellpadding=\"0\"\r\n");
      out.write("\t\t\t\tcellspacing=\"0\">\r\n");
      out.write("\t\t\t\t<tr>\r\n");
      out.write("\t\t\t\t\t<td width=\"15\">\r\n");
      out.write("\t\t\t\t\t\t<img src=\"");
      out.print( request.getContextPath() );
      out.write("/image/search/icon_arrow.gif\" width=\"11\" height=\"11\">\r\n");
      out.write("\t\t\t\t\t</td>\r\n");
      out.write("\t\t\t\t\t<td>\r\n");
      out.write("\t\t\t\t\t\t<span class=\"style2\">관리자 정보</span>\r\n");
      out.write("\t\t\t\t\t</td>\r\n");
      out.write("\t\t\t\t</tr>\r\n");
      out.write("\t\t\t</table>\r\n");
      out.write("\t\t</td>\r\n");
      out.write("\t</tr>\r\n");
      out.write("</table>\r\n");
      out.write("\r\n");
      out.write("<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\r\n");
      out.write("\t<tr>\r\n");
      out.write("\t\t<td height=\"5\"></td>\r\n");
      out.write("\t</tr>\r\n");
      out.write("\t<tr>\r\n");
      out.write("\t\t<td style=\"PADDING-LEFT: 20px; PADDING-RIGHT: 20px; PADDING-TOP: 5px; PADDING-BOTTOM: 5px;\" bgcolor=\"#F7F7F7\">\r\n");
      out.write("\t\t\t<div class=\"ContentArea\">\r\n");
      out.write("\t\t\t\t<div id=\"AdminModify\">\r\n");
      out.write("\t\t\t\t\t<a href=\"javascript:popup('adminModify.jsp');\">비밀번호 변경</a>\r\n");
      out.write("\t\t\t\t</div>\r\n");
      out.write("\t\t\t</div>\r\n");
      out.write("\t\t</td>\r\n");
      out.write("\t</tr>\r\n");
      out.write("</table>\r\n");
      out.write("\r\n");
      out.write("<br/>\r\n");
      out.write("\t\r\n");
      out.write("<table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"1\"\r\n");
      out.write("\tbgcolor=\"#CDDCED\">\r\n");
      out.write("\t<tr>\r\n");
      out.write("\t\t<td\r\n");
      out.write("\t\t\tstyle=\"PADDING-LEFT: 10px; PADDING-RIGHT: 20px; PADDING-TOP: 5px; PADDING-BOTTOM: 5px;\"\r\n");
      out.write("\t\t\tbgcolor=\"#FFFFFF\">\r\n");
      out.write("\t\t\t<table width=\"100%\" border=\"0\" align=\"center\" cellpadding=\"0\"\r\n");
      out.write("\t\t\t\tcellspacing=\"0\">\r\n");
      out.write("\t\t\t\t<tr>\r\n");
      out.write("\t\t\t\t\t<td width=\"15\">\r\n");
      out.write("\t\t\t\t\t\t<img src=\"");
      out.print( request.getContextPath() );
      out.write("/image/search/icon_arrow.gif\" width=\"11\" height=\"11\">\r\n");
      out.write("\t\t\t\t\t</td>\r\n");
      out.write("\t\t\t\t\t<td>\r\n");
      out.write("\t\t\t\t\t\t<span class=\"style2\">DocumentId 정보</span>\r\n");
      out.write("\t\t\t\t\t</td>\r\n");
      out.write("\t\t\t\t</tr>\r\n");
      out.write("\t\t\t</table>\r\n");
      out.write("\t\t</td>\r\n");
      out.write("\t</tr>\r\n");
      out.write("</table>\r\n");
      out.write("\r\n");
      out.write("<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\r\n");
      out.write("\t<tr>\r\n");
      out.write("\t\t<td height=\"5\"></td>\r\n");
      out.write("\t</tr>\r\n");
      out.write("\t<tr>\r\n");
      out.write("\t\t<td style=\"PADDING-LEFT: 20px; PADDING-RIGHT: 20px; PADDING-TOP: 5px; PADDING-BOTTOM: 5px;\" bgcolor=\"#F7F7F7\">\r\n");
      out.write("\t\t\t<div class=\"ContentArea\">\r\n");
      out.write("\t\t\t\t<div id=\"DocumentIdInfo\">\r\n");
      out.write("\t\t\t\t\t<table>\r\n");
      out.write("\t\t\t\t\t\t<tr>\r\n");
      out.write("\t\t\t\t\t\t\t<th id=\"Action\">Action</th>\r\n");
      out.write("\t\t\t\t\t\t\t<th id=\"PayloadIndex\">첨부문서 위치</th>\r\n");
      out.write("\t\t\t\t\t\t\t<th id=\"XPath\">XPath</th>\r\n");
      out.write("\t\t\t\t\t\t\t<th id=\"Modify\"></th>\r\n");
      out.write("\t\t\t\t\t\t\t<th id=\"Delete\"></th>\r\n");
      out.write("\t\t\t\t\t\t</tr>\r\n");
      out.write("\t\t\t\t\t\t\r\n");
      out.write("\t\t\t\t\t\t");

							EbmsMoniterManager manager = new EbmsMoniterManager();
							
							List documentIdInfos = manager.getDocumentIdInfos();
							
							for(int i = 0; i < documentIdInfos.size(); i++) {
								DocumentIdInfo documentIdInfo = (DocumentIdInfo)documentIdInfos.get(i);
						
      out.write("\t\r\n");
      out.write("\t\t\t\t\t\t\t<tr>\r\n");
      out.write("\t\t\t\t\t\t\t\t<td>\r\n");
      out.write("\t\t\t\t\t\t\t\t\t");
      out.print( documentIdInfo.getAction() );
      out.write("\r\n");
      out.write("\t\t\t\t\t\t\t\t</td>\r\n");
      out.write("\t\t\t\t\t\t\t\t\r\n");
      out.write("\t\t\t\t\t\t\t\t<td>\r\n");
      out.write("\t\t\t\t\t\t\t\t\t");
      out.print( documentIdInfo.getPayloadIndex() );
      out.write("\r\n");
      out.write("\t\t\t\t\t\t\t\t</td>\r\n");
      out.write("\t\t\t\t\t\t\t\t\r\n");
      out.write("\t\t\t\t\t\t\t\t<td>\r\n");
      out.write("\t\t\t\t\t\t\t\t\t");
      out.print( documentIdInfo.getXPath() );
      out.write("\r\n");
      out.write("\t\t\t\t\t\t\t\t</td>\r\n");
      out.write("\t\t\t\t\t\t\t\t\r\n");
      out.write("\t\t\t\t\t\t\t\t<td>\r\n");
      out.write("\t\t\t\t\t\t\t\t\t<a href=\"javascript:popup('documentIdInfoModify.jsp?action=");
      out.print( documentIdInfo.getAction() );
      out.write("');\">수 정</a>\r\n");
      out.write("\t\t\t\t\t\t\t\t</td>\r\n");
      out.write("\t\t\t\t\t\t\t\t\r\n");
      out.write("\t\t\t\t\t\t\t\t<td>\r\n");
      out.write("\t\t\t\t\t\t\t\t\t<a href=\"documentIdInfoDeleteProcess.jsp?action=");
      out.print( documentIdInfo.getAction() );
      out.write("\">삭 제</a>\r\n");
      out.write("\t\t\t\t\t\t\t\t</td>\r\n");
      out.write("\t\t\t\t\t\t\t</tr>\r\n");
      out.write("\t\t\t\t\t\t");

							}
						
      out.write("\r\n");
      out.write("\t\t\t\t\t\t\r\n");
      out.write("\t\t\t\t\t\t<tr>\r\n");
      out.write("\t\t\t\t\t\t\t<td colspan=\"5\">\r\n");
      out.write("\t\t\t\t\t\t\t\t<div id=\"DocumentIdAdd\">\r\n");
      out.write("\t\t\t\t\t\t\t\t\t<a href=\"javascript:popup('documentIdInfoInsert.jsp');\">추 가 </a>\r\n");
      out.write("\t\t\t\t\t\t\t\t</div>\r\n");
      out.write("\t\t\t\t\t\t\t</td>\r\n");
      out.write("\t\t\t\t\t\t</tr>\r\n");
      out.write("\t\t\t\t\t</table>\r\n");
      out.write("\t\t\t\t</div>\r\n");
      out.write("\t\t\t</div>\r\n");
      out.write("\t\t</td>\r\n");
      out.write("\t</tr>\r\n");
      out.write("</table>");
    } catch (Throwable t) {
      if (!(t instanceof SkipPageException)){
        out = _jspx_out;
        if (out != null && out.getBufferSize() != 0)
          out.clearBuffer();
        if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
      }
    } finally {
      if (_jspxFactory != null) _jspxFactory.releasePageContext(_jspx_page_context);
    }
  }
}
