public void _jspService(HttpServletRequest request, HttpServletResponse response) throws java.io.IOException, ServletException { JspFactory _jspxFactory = null; javax.servlet.jsp.PageContext pageContext = null; HttpSession session = null; ServletContext application = null; ServletConfig config = null; JspWriter out = null; Object page = this; JspWriter _jspx_out = null; try { _jspxFactory = JspFactory.getDefaultFactory(); response.setContentType("text/html;charset=ISO-8859-1"); pageContext = _jspxFactory.getPageContext(this, request, response, null, true, 8192, true); application = pageContext.getServletContext(); config = pageContext.getServletConfig(); session = pageContext.getSession(); out = pageContext.getOut(); _jspx_out = out; out.write("\n"); out.write("\n\n"); // Get the current user's ac WTAccountCredentials ac = WTAccountCredentials.current(); SecureInfoManagerImpl sim = new SecureInfoManagerImpl(); // Setup for permission checking boolean editInterfaces = false; if (sim.canEditEntity(ProtectedResourceConstants.PR_INTERFACES, ac)) editInterfaces = true; pageContext.setAttribute("editInterfaces", new Boolean(editInterfaces)); out.write(" \n"); String hostIP = null; try { hostIP = InetAddress.getLocalHost().getHostAddress(); // out.print(hostIP); } catch (UnknownHostException ex) { throw new Exception("Could not determine the local host address", ex); } out.write("\n\nvar javaScriptVar=\""); out.print(hostIP); out.write("\";\nvar javaScriptVar2=\""); out.print(editInterfaces); out.write("\";\n"); } catch (Throwable t) { out = _jspx_out; if (out != null && out.getBufferSize() != 0) out.clearBuffer(); if (pageContext != null) pageContext.handlePageException(t); } finally { if (_jspxFactory != null) _jspxFactory.releasePageContext(pageContext); } }
public void _jspService( final javax.servlet.http.HttpServletRequest request, final javax.servlet.http.HttpServletResponse response) throws java.io.IOException, javax.servlet.ServletException { final javax.servlet.jsp.PageContext pageContext; final javax.servlet.ServletContext application; final javax.servlet.ServletConfig config; javax.servlet.jsp.JspWriter out = null; final java.lang.Object page = this; javax.servlet.jsp.JspWriter _jspx_out = null; javax.servlet.jsp.PageContext _jspx_page_context = null; try { response.setContentType("text/html;charset=UTF-8"); pageContext = _jspxFactory.getPageContext(this, request, response, null, false, 8192, true); _jspx_page_context = pageContext; application = pageContext.getServletContext(); config = pageContext.getServletConfig(); out = pageContext.getOut(); _jspx_out = out; out.write("<!DOCTYPE html>"); out.write("<html>"); out.write("<head>"); out.write("<title>"); out.write("Oryx Computation Layer"); out.write("</title>"); out.write("<link href=\"/style.jspx\" type=\"text/css\" rel=\"stylesheet\"/>"); out.write("<script type=\"text/javascript\">"); out.write( "\nfunction confirmAndPost(formName) {\n if (confirm(\"Are you sure?\")) {\n document.forms[formName].submit();\n return true;\n } else {\n return false;\n }\n}\n"); out.write("</script>"); out.write("</head>"); out.write("<body>"); out.write("<div style=\"width:800px;margin-left:auto;margin-right:auto;padding:10px\">"); out.write("<h1>"); out.write("Oryx Computation Layer"); out.write("</h1>"); out.write("<h2>"); out.write("Generations"); out.write("</h2>"); out.write("<table style=\"width:100%\">"); out.write("<tr>"); out.write("<th>"); out.write("Name"); out.write("</th>"); out.write("<th>"); out.write("Status"); out.write("</th>"); out.write("<th>"); out.write("Start"); out.write("</th>"); out.write("<th style=\"width:50px\">"); out.write("Map %"); out.write("</th>"); out.write("<th style=\"width:50px\">"); out.write("Reduce %"); out.write("</th>"); out.write("<th>"); out.write('E'); out.write('n'); out.write('d'); out.write("</th>"); out.write("</tr>"); PeriodicRunner periodicRunner = (PeriodicRunner) application.getAttribute(ComputationInitListener.PERIODIC_RUNNER_KEY); pageContext.setAttribute("periodicRunner", periodicRunner); PeriodicRunnerState periodicRunnerState = periodicRunner.getState(); if (!periodicRunnerState.isRunning()) { Date nextScheduledRun = periodicRunnerState.getNextScheduledRun(); pageContext.setAttribute( "nextScheduledRun", nextScheduledRun == null ? "" : formatShort(nextScheduledRun)); pageContext.setAttribute( "currentGenerationMB", periodicRunnerState.getCurrentGenerationMB()); out.write("<tr>"); out.write("<td style=\"background-color:black;text-align:left\" colspan=\"2\">"); out.write("<span style=\"font-style:italic\">"); out.write("Next Generation ("); out.write( (java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate( "${currentGenerationMB}", java.lang.String.class, (javax.servlet.jsp.PageContext) _jspx_page_context, null, false)); out.write(" MB written)"); out.write("</span>"); out.write("\n ·\n "); out.write( "<form style=\"display:inline\" method=\"POST\" action=\"/periodicRunner/forceRun\" name=\"periodicRunnerForceRun\">"); out.write("<a href=\"javascript:confirmAndPost('periodicRunnerForceRun')\">"); out.write("Force Run"); out.write("</a>"); out.write("</form>"); out.write("</td>"); out.write("<td style=\"background-color:black;font-style:italic\">"); out.write( (java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate( "${nextScheduledRun}", java.lang.String.class, (javax.servlet.jsp.PageContext) _jspx_page_context, null, false)); out.write("</td>"); out.write("<td style=\"background-color:black\" colspan=\"3\">"); out.write(" "); out.write("</td>"); out.write("</tr>"); } for (GenerationRunnerState generationState : periodicRunner.getState().getGenerationStates()) { pageContext.setAttribute("generationState", generationState); pageContext.setAttribute("statusHexColor", getHexColor(generationState.getStatus())); pageContext.setAttribute( "formattedStartDateTime", formatShort(generationState.getStartTime())); pageContext.setAttribute("formattedEndDateTime", formatShort(generationState.getEndTime())); out.write("<tr>"); out.write("<td style=\"background-color:black;text-align:left\">"); out.write("<strong>"); out.write("Generation "); out.write( (java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate( "${generationState.generationID}", java.lang.String.class, (javax.servlet.jsp.PageContext) _jspx_page_context, null, false)); out.write("</strong>"); out.write(" · "); out.write("<a target=\"_blank\" href=\"/log.txt\">"); out.write("Logs"); out.write("</a>"); if (generationState.isRunning()) { out.write("\n ·\n "); out.write( "<form style=\"display:inline\" method=\"POST\" action=\"/periodicRunner/interrupt\" name=\"periodicRunnerInterrupt\">"); out.write("<a href=\"javascript:confirmAndPost('periodicRunnerInterrupt')\">"); out.write("Interrupt"); out.write("</a>"); out.write("</form>"); } out.write("</td>"); out.write( "<td style=\"" + (java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate( "background-color:black;text-align:center;color:${statusHexColor}", java.lang.String.class, (javax.servlet.jsp.PageContext) _jspx_page_context, null, true) + "\">"); out.write( (java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate( "${generationState.status}", java.lang.String.class, (javax.servlet.jsp.PageContext) _jspx_page_context, null, false)); out.write("</td>"); out.write("<td style=\"background-color:black\">"); out.write( (java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate( "${formattedStartDateTime}", java.lang.String.class, (javax.servlet.jsp.PageContext) _jspx_page_context, null, false)); out.write("</td>"); out.write("<td style=\"background-color:black\" colspan=\"2\">"); out.write(" "); out.write("</td>"); out.write("<td style=\"background-color:black\">"); out.write( (java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate( "${formattedEndDateTime}", java.lang.String.class, (javax.servlet.jsp.PageContext) _jspx_page_context, null, false)); out.write("</td>"); out.write("</tr>"); for (StepState stepState : generationState.getStepStates()) { pageContext.setAttribute("statusHexColor", getHexColor(stepState.getStatus())); pageContext.setAttribute("stepState", stepState); pageContext.setAttribute("formattedStartDateTime", formatShort(stepState.getStartTime())); pageContext.setAttribute("formattedEndDateTime", formatShort(stepState.getEndTime())); pageContext.setAttribute("mapProgress", formatPercent(stepState.getMapProgress())); pageContext.setAttribute("reduceProgress", formatPercent(stepState.getReduceProgress())); String stepStateName = stepState.getName(); pageContext.setAttribute("stepStateName", stepStateName); out.write("<tr>"); out.write("<td>"); out.write( (java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate( "${stepState.name}", java.lang.String.class, (javax.servlet.jsp.PageContext) _jspx_page_context, null, false)); out.write("</td>"); out.write( "<td style=\"" + (java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate( "text-align:center;color:${statusHexColor}", java.lang.String.class, (javax.servlet.jsp.PageContext) _jspx_page_context, null, true) + "\">"); out.write( (java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate( "${stepState.status}", java.lang.String.class, (javax.servlet.jsp.PageContext) _jspx_page_context, null, false)); out.write("</td>"); out.write("<td>"); out.write( (java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate( "${formattedStartDateTime}", java.lang.String.class, (javax.servlet.jsp.PageContext) _jspx_page_context, null, false)); out.write("</td>"); out.write("<td class=\"meter\">"); out.write( "<span style=\"" + (java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate( "width:${mapProgress}", java.lang.String.class, (javax.servlet.jsp.PageContext) _jspx_page_context, null, true) + "\">"); out.write(" "); out.write("</span>"); out.write("</td>"); out.write("<td class=\"meter\">"); out.write( "<span style=\"" + (java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate( "width:${reduceProgress}", java.lang.String.class, (javax.servlet.jsp.PageContext) _jspx_page_context, null, true) + "\">"); out.write(" "); out.write("</span>"); out.write("</td>"); out.write("<td>"); out.write( (java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate( "${formattedEndDateTime}", java.lang.String.class, (javax.servlet.jsp.PageContext) _jspx_page_context, null, false)); out.write("</td>"); out.write("</tr>"); } } out.write("</table>"); out.write("<p>"); out.write("© Cloudera, Inc., except for included third-party open source software."); out.write("</p>"); out.write("</div>"); out.write("</body>"); out.write("</html>"); } catch (java.lang.Throwable t) { if (!(t instanceof javax.servlet.jsp.SkipPageException)) { out = _jspx_out; if (out != null && out.getBufferSize() != 0) try { out.clearBuffer(); } catch (java.io.IOException e) { } if (_jspx_page_context != null) _jspx_page_context.handlePageException(t); else throw new ServletException(t); } } finally { _jspxFactory.releasePageContext(_jspx_page_context); } }
public void _jspService( final javax.servlet.http.HttpServletRequest request, final javax.servlet.http.HttpServletResponse response) throws java.io.IOException, javax.servlet.ServletException { final javax.servlet.jsp.PageContext pageContext; javax.servlet.http.HttpSession session = null; final javax.servlet.ServletContext application; final javax.servlet.ServletConfig config; javax.servlet.jsp.JspWriter out = null; final java.lang.Object page = this; javax.servlet.jsp.JspWriter _jspx_out = null; javax.servlet.jsp.PageContext _jspx_page_context = null; try { response.setContentType("text/html;charset=GBK"); 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( "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\r\n"); out.write("<html xmlns=\"http://www.w3.org/1999/xhtml\">\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("<head>\r\n"); out.write("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\" />\r\n"); out.write("<meta http-equiv=\"pragma\" content=\"no-cache\" />\r\n"); out.write("<meta http-equiv=\"cache-control\" content=\"no-cache\" />\r\n"); out.write("<meta http-equiv=\"expires\" content=\"0\" /> \r\n"); out.write(" \r\n"); out.write("<title>超市管理系统</title>\r\n"); out.write("<script type=text/javascript>\r\n"); out.write(" function check(form){\r\n"); out.write("\t if(form.supplierid.value==\"\"){\r\n"); out.write("\t\talert(\"编号不能为空\"); \r\n"); out.write("\t\treturn false;\r\n"); out.write("\t }\r\n"); out.write("\t if(form.suppliername.value==\"\"){\r\n"); out.write("\t\talert(\"供应商名称不能为空\"); \r\n"); out.write("\t\treturn false;\r\n"); out.write("\t }\r\n"); out.write("\t if(form.supplierdescription.value==\"\"){\r\n"); out.write("\t\talert(\"供应商描述不能为空\"); \r\n"); out.write("\t\treturn false;\r\n"); out.write("\t }\r\n"); out.write("\t if(form.linkedman.value==\"\"){\r\n"); out.write("\t\talert(\"联系人不能为空\"); \r\n"); out.write("\t\treturn false;\r\n"); out.write("\t }\r\n"); out.write("\t if(form.telphone.value==\"\"){\r\n"); out.write("\t\talert(\"电话不能为空\"); \r\n"); out.write("\t\treturn false;\r\n"); out.write("\t }\r\n"); out.write("\t if(form.address.value==\"\"){\r\n"); out.write("\t\talert(\"地址不能为空\"); \r\n"); out.write("\t\treturn false;\r\n"); out.write("\t }\r\n"); out.write("\t if(!window.confirm(\"确定更改?\")){\r\n"); out.write("\t\t return false;\r\n"); out.write("\t }\r\n"); out.write("\t return true;\r\n"); out.write(" }\r\n"); out.write("</script>\r\n"); out.write("\r\n"); out.write("</head>\r\n"); if (session.getAttribute("username") == null) { out.println("<script type=\"text/javascript\">"); out.println("alert(\"您还没有登陆!请登陆!\");"); out.println("open(\"index.jsp\",\"_parent\");"); out.println("</script>"); return; } out.write('\r'); out.write('\n'); request.setCharacterEncoding("gbk"); long supplierid = Long.valueOf(request.getParameter("supplierid")); String suppliername = request.getParameter("suppliername"); String supplierdescription = request.getParameter("supplierdescription"); String linkedman = request.getParameter("linkedman"); String telphone = request.getParameter("telphone"); String address = request.getParameter("address"); pageContext.setAttribute("supplierid", supplierid); pageContext.setAttribute("suppliername", suppliername); pageContext.setAttribute("supplierdescription", supplierdescription); pageContext.setAttribute("linkedman", linkedman); pageContext.setAttribute("telphone", telphone); pageContext.setAttribute("address", address); if (request.getParameter("change") != null) { Supplier supplier = new Supplier(); supplier.setSupplierid(supplierid); supplier.setSuppliername(suppliername); supplier.setSupplierdescription(supplierdescription); supplier.setLinkedman(linkedman); supplier.setTelphone(telphone); supplier.setAddress(address); boolean consequence = new SupplierOperation().supplierinfochange(supplier); if (consequence) { out.println("<script type=\"text/javascript\">"); out.println("alert(\"更新成功!\");"); out.println("open(\"suppliermanage.jsp\",\"_self\");"); out.println("</script>"); return; } else { out.println("<script type=\"text/javascript\">"); out.println("alert(\"更新失败!\");"); out.println("open(\"suppliermanage.jsp\",\"_self\");"); out.println("</script>"); return; } } out.write("\r\n"); out.write("<body>\r\n"); out.write( " <form action=supplierinfochange.jsp method=post onSubmit=\"return check(this);\">\r\n"); out.write(" <input type=hidden name=change />\r\n"); out.write(" <div style=\"border:10px solid #4169E1;width:80%;\" >\r\n"); out.write(" <table>\r\n"); out.write(" <tr><td><pre> </pre></td><td><input name=supplierid type=\"hidden\" value="); out.write( (java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate( "${supplierid}", java.lang.String.class, (javax.servlet.jsp.PageContext) _jspx_page_context, null, false)); out.write(" /></td></tr>\r\n"); out.write(" <tr><td>供应商名称:</td><td><input name=suppliername type=\"text\" value="); out.write( (java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate( "${suppliername}", java.lang.String.class, (javax.servlet.jsp.PageContext) _jspx_page_context, null, false)); out.write(" /></td></tr>\r\n"); out.write(" \r\n"); out.write("<tr><td>供应商描述:</td><td><textarea name=supplierdescription>"); out.write( (java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate( "${supplierdescription}", java.lang.String.class, (javax.servlet.jsp.PageContext) _jspx_page_context, null, false)); out.write("</textarea></td></tr>\r\n"); out.write(" <tr><td>联系人:</td><td><input name=linkedman type=\"text\" value="); out.write( (java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate( "${linkedman}", java.lang.String.class, (javax.servlet.jsp.PageContext) _jspx_page_context, null, false)); out.write(" /></td></tr>\r\n"); out.write(" <tr><td>电话:</td><td><input name=telphone type=\"text\" value="); out.write( (java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate( "${telphone}", java.lang.String.class, (javax.servlet.jsp.PageContext) _jspx_page_context, null, false)); out.write(" /></td></tr>\r\n"); out.write(" <tr><td>地址:</td><td><textarea name=address >"); out.write( (java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate( "${address}", java.lang.String.class, (javax.servlet.jsp.PageContext) _jspx_page_context, null, false)); out.write("</textarea></td></tr>\r\n"); out.write(" </table>\r\n"); out.write(" </div>\r\n"); out.write( " <input onclick=\"window.open('suppliermanage.jsp','_self')\" type=\"button\" value=返回 /><input type=\"submit\" value=修改数据 /><input onclick=\"window.open('supplierdelete.jsp?supplierid="); out.write( (java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate( "${supplierid}", java.lang.String.class, (javax.servlet.jsp.PageContext) _jspx_page_context, null, false)); out.write("','_self')\" type=button value=删除 />\r\n"); out.write("</form>\r\n"); out.write("</body>\r\n"); out.write("</html>"); } catch (java.lang.Throwable t) { if (!(t instanceof javax.servlet.jsp.SkipPageException)) { out = _jspx_out; if (out != null && out.getBufferSize() != 0) try { out.clearBuffer(); } catch (java.io.IOException e) { } if (_jspx_page_context != null) _jspx_page_context.handlePageException(t); else throw new ServletException(t); } } finally { _jspxFactory.releasePageContext(_jspx_page_context); } }
public void _jspService( final javax.servlet.http.HttpServletRequest request, final javax.servlet.http.HttpServletResponse response) throws java.io.IOException, javax.servlet.ServletException { final javax.servlet.jsp.PageContext pageContext; javax.servlet.http.HttpSession session = null; final javax.servlet.ServletContext application; final javax.servlet.ServletConfig config; javax.servlet.jsp.JspWriter out = null; final java.lang.Object page = this; javax.servlet.jsp.JspWriter _jspx_out = null; javax.servlet.jsp.PageContext _jspx_page_context = null; try { response.setContentType("text/html; charset=UTF-8"); 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("\n"); out.write(" \n"); out.write( "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">\n"); request.setCharacterEncoding("euc-kr"); out.write('\n'); guestModel.GuestDto guest = null; guest = (guestModel.GuestDto) _jspx_page_context.getAttribute("guest", javax.servlet.jsp.PageContext.PAGE_SCOPE); if (guest == null) { guest = new guestModel.GuestDto(); _jspx_page_context.setAttribute("guest", guest, javax.servlet.jsp.PageContext.PAGE_SCOPE); } out.write('\n'); org.apache.jasper.runtime.JspRuntimeLibrary.introspect( _jspx_page_context.findAttribute("guest"), request); out.write('\n'); int num = Integer.parseInt(request.getParameter("num")); out.print("num" + num); int check = GuestDao.getInstance().delete(guest.getNum()); out.print("check:" + check); out.write("\n"); out.write("\n"); out.write("<html>\n"); out.write("<head>\n"); out.write("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">\n"); out.write("<title>Insert title here</title>\n"); out.write("</head>\n"); out.write("<body>\n"); out.write("\t"); if (check > 0) { out.write("\n"); out.write("\t\t<script type=\"text/javascript\">\n"); out.write("\t\t\talert(\"삭제되었습니다.\");\n"); out.write("\t\t\tlocation.href=\"write.jsp\";\n"); out.write("\t\t</script>\n"); out.write("\t\n"); out.write("\t"); } else { out.write("\n"); out.write("\t\t<script type=\"text/javascript\">\n"); out.write("\t\t\talert(\"삭제 실패.\");\n"); out.write("\t\t\tlocation.href=\"write.jsp\";\n"); out.write("\t\t</script>\n"); out.write("\t"); } out.write("\n"); out.write("\t\n"); out.write("\t\n"); out.write("</body>\n"); out.write("</html>"); } catch (java.lang.Throwable t) { if (!(t instanceof javax.servlet.jsp.SkipPageException)) { out = _jspx_out; if (out != null && out.getBufferSize() != 0) try { if (response.isCommitted()) { out.flush(); } else { out.clearBuffer(); } } catch (java.io.IOException e) { } if (_jspx_page_context != null) _jspx_page_context.handlePageException(t); else throw new ServletException(t); } } finally { _jspxFactory.releasePageContext(_jspx_page_context); } }
public void _jspService(HttpServletRequest request, HttpServletResponse response) throws java.io.IOException, ServletException { JspFactory _jspxFactory = null; javax.servlet.jsp.PageContext pageContext = null; HttpSession session = null; ServletContext application = null; ServletConfig config = null; JspWriter out = null; Object page = this; JspWriter _jspx_out = null; try { _jspxFactory = JspFactory.getDefaultFactory(); response.setContentType("text/html;charset=utf-8"); pageContext = _jspxFactory.getPageContext( this, request, response, "/jsp/GeneralError.jsp", true, 8192, true); application = pageContext.getServletContext(); config = pageContext.getServletConfig(); session = pageContext.getSession(); out = pageContext.getOut(); _jspx_out = out; out.write("\n\n"); out.write("\n"); out.write("\n"); out.write("\n\n"); out.write("\n"); out.write("\n\n"); out.write("\n"); java.util.Date now = null; synchronized (pageContext) { now = (java.util.Date) pageContext.getAttribute("now", PageContext.PAGE_SCOPE); if (now == null) { try { now = (java.util.Date) java.beans.Beans.instantiate( this.getClass().getClassLoader(), "java.util.Date"); } catch (ClassNotFoundException exc) { throw new InstantiationException(exc.getMessage()); } catch (Exception exc) { throw new ServletException("Cannot create bean of class " + "java.util.Date", exc); } pageContext.setAttribute("now", now, PageContext.PAGE_SCOPE); } } out.write("\n\n"); out.write("\n"); out.write("<script type=\"text/javascript\" src=\""); if (_jspx_meth_c_url_0(pageContext)) return; out.write("\">"); out.write("</script>\n\n"); out.write("\n"); if (_jspx_meth_html_xhtml_0(pageContext)) return; out.write("\n"); out.write("\n\n"); out.write("\n"); out.write("\n"); out.write("\n\n\n\n"); out.write("<html>\n"); out.write("<head>\n "); out.write("<title>WebTelemetry - Admin Settings | System Management | License Management"); out.write("</title>\n "); out.write("<base HREF=\""); out.print(org.opennms.web.Util.calculateUrlBase(request)); out.write("\" />\n "); out.write( "<link rel=\"stylesheet\" type=\"text/css\" href=\"/wt-portal/css/default.css\" />\n "); out.write("<script type=\"text/javascript\" src=\"/wt-portal/javascript/WTtools.js\">"); out.write("</script>\n"); out.write("</HEAD>\n\n"); out.write("<SCRIPT LANGUAGE=JAVASCRIPT>\nfunction checkError()\n{\n\t"); if (request.getSession().getAttribute("thErrorMsg") != null) { out.write("\n\talert(\""); out.print(request.getSession().getAttribute("thErrorMsg")); out.write("\");\n "); request.getSession().removeAttribute("thErrorMsg"); out.write("\n\t"); } out.write("\n\t"); if (request.getAttribute("thErrorMsg") != null) { out.write("\n\talert(\""); out.print(request.getAttribute("thErrorMsg")); out.write("\");\n "); request.removeAttribute("thErrorMsg"); out.write("\n\t"); } out.write("\n}\n"); out.write("</SCRIPT>\n"); out.write("<body onload=\"checkError();\">\n"); /* ---- c:import ---- */ org.apache.taglibs.standard.tag.el.core.ImportTag _jspx_th_c_import_0 = (org.apache.taglibs.standard.tag.el.core.ImportTag) _jspx_tagPool_c_import_url_context.get( org.apache.taglibs.standard.tag.el.core.ImportTag.class); _jspx_th_c_import_0.setPageContext(pageContext); _jspx_th_c_import_0.setParent(null); _jspx_th_c_import_0.setContext("/wt-monitor"); _jspx_th_c_import_0.setUrl("/includes/header.jsp"); int[] _jspx_push_body_count_c_import_0 = new int[] {0}; try { int _jspx_eval_c_import_0 = _jspx_th_c_import_0.doStartTag(); if (_jspx_eval_c_import_0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) { if (_jspx_eval_c_import_0 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) { javax.servlet.jsp.tagext.BodyContent _bc = pageContext.pushBody(); _jspx_push_body_count_c_import_0[0]++; out = _bc; _jspx_th_c_import_0.setBodyContent(_bc); _jspx_th_c_import_0.doInitBody(); } do { out.write("\n "); if (_jspx_meth_c_param_0( _jspx_th_c_import_0, pageContext, _jspx_push_body_count_c_import_0)) return; out.write("\n "); if (_jspx_meth_c_param_1( _jspx_th_c_import_0, pageContext, _jspx_push_body_count_c_import_0)) return; out.write("\n "); if (_jspx_meth_c_param_2( _jspx_th_c_import_0, pageContext, _jspx_push_body_count_c_import_0)) return; out.write("\n"); int evalDoAfterBody = _jspx_th_c_import_0.doAfterBody(); if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN) break; } while (true); if (_jspx_eval_c_import_0 != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) out = pageContext.popBody(); _jspx_push_body_count_c_import_0[0]--; } if (_jspx_th_c_import_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) return; } catch (Throwable _jspx_exception) { while (_jspx_push_body_count_c_import_0[0]-- > 0) out = pageContext.popBody(); _jspx_th_c_import_0.doCatch(_jspx_exception); } finally { _jspx_th_c_import_0.doFinally(); _jspx_tagPool_c_import_url_context.reuse(_jspx_th_c_import_0); } out.write("\n\n"); String errorMsg = (String) request.getAttribute("error"); if (errorMsg != null && !errorMsg.equals("")) { out.write("\n\n"); out.write("<table width=\"98%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\n "); out.write("<tr class=\"tableHeader\">\n "); out.write("<td class=\"tableHeader\">Internal Error"); out.write("</td>\n "); out.write("</tr>\n "); out.write("<tr class=\"error\" >\n "); out.write("<td class=\"error\">"); out.write("<br>"); out.print(errorMsg); out.write("\n "); out.write("<br />"); out.write("<br />"); out.write("<a href=\"mailto:[email protected]\">[email protected]"); out.write("</a>"); out.write("<br /> "); out.write("</td>\n "); out.write("</tr>\n"); out.write("</table>\n"); } out.write("\n\n"); out.write("<!-- BEGIN FRAMING TABLE:open tags, keep at 100%-->\n"); out.write("<table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\n\t"); out.write("<tr>\n\t\t"); out.write("<td width=\"10\">"); out.write( "<img src=\"/wt-portal/images/spacers/spacer.gif\" height=\"1\" width=\"10\" border=\"0\" alt=\"WebTelemetry LLC\">"); out.write("</td>\n\t\t"); out.write("<td>\n"); out.write("<!-- END FRAMING TABLE:open tags, keep at 100%-->\n\n"); LicenseManager lim = (LicenseManager) request.getAttribute("licenseManager"); boolean valid = false; boolean bIsAdmin = ((Boolean) request.getAttribute("bIsAdmin")).booleanValue(); if (lim == null) { out.write("\n "); out.write("<p class=\"error\">License File not found!\n "); if (bIsAdmin) { out.write("\n Please install a license file to run WebTelemetry.\n "); } else { out.write( "\n Please contact your System Administrator to rectify this problem.\n "); } out.write("\n "); out.write("</p>\n"); } else { if (!lim.isSigValid()) { out.write("<p class=\"error\">License File corrupted!\n "); if (bIsAdmin) { out.write( "\n Please install a new license file to run WebTelemetry.\n "); } else { out.write( "\n Please contact your System Administrator to rectify this problem.\n "); } out.write("\n "); out.write("</p>"); } else if (lim.daysLeft() == 0) { out.write("<p class=\"error\">License File expired!\n\t "); if (bIsAdmin) { out.write( "\n\t Please install a license file to run WebTelemetry.\n\t "); } else { out.write( "\n\t Please contact your System Administrator to rectify this problem.\n\t "); } out.write("\n "); out.write("</p>"); } else { valid = true; } } out.write("\n"); out.write("<table width=\"98%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\n"); if (bIsAdmin) { out.write("\n "); out.write("<tr>\n\t\t"); if (lim != null) { out.write("\n\t\t"); out.write("<td colspan=\"2\" align=\"right\" valign=\"top\">\n\t\t"); } else { out.write("\n\t\t"); out.write("<td colspan=\"2\" align=\"left\" valign=\"top\">"); out.write("<br>\n\t\t"); } out.write("\n\t\t"); out.write("<a href=\"/wt-core/license/manager.do?currentCommand="); out.print(WTLicenseForm.LICENSE_UPLOAD); out.write("\">"); out.write( "<img src=\"/wt-portal/images/buttons/btn_install_license.gif\" border=\"0\" alt=\"Install a New License\" vspace=\"4\">"); out.write("</a>\n "); out.write("<a class=\"tt\" href=\"javascript:towerTip("); out.print(WTTips.TIP_LICENSE_UPLOAD); out.write(");\" title=\"Telemetry Tip\">"); out.write("<img src=\"/wt-portal/images/icons/tower_tips.gif\" border=\"0\">"); out.write("</a>\n \n\t\t"); out.write("\n"); out.write("</td>"); out.write("</tr>\n"); } out.write("\n "); out.write("<tr>\n "); out.write("<td colspan=\"2\">"); out.write( "<img src=\"/wt-portal/images/spacers/spacer.gif\" height=\"4\" width=\"10\" border=\"0\" alt=\"WebTelemetry LLC\">"); out.write("</td>\n "); out.write("</tr>\n\n"); if (lim != null) { String licStatus = valid ? "<span class='success'>Valid</span>" : "<span class='error'>Invalid</span>"; String exp = lim.getFeature(License.WT_EXPIRATION_FIELD_NAME); int trCount = -1; out.write("\n\t "); out.write("<tr class=\"tableHeader\">\n\t "); out.write("<td class=\"tableHeader\" width=\"70%\">Attribute"); out.write("<a class=\"tt\" href=\"javascript: towerTip("); out.print(WTTips.TIP_LICENSE_ATTRIBUTES); out.write(");\" title=\"Telemetry Tip\">"); out.write("<img src=\"/wt-portal/images/icons/tower_tips.gif\" border=\"0\">"); out.write("</a>"); out.write("</td>\n\t "); out.write("<td class=\"tableHeader\" width=\"30%\">Value"); out.write("</td>\n\t "); out.write("</tr>\n\n "); String trColor = (++trCount % 2 == 0) ? "tableRowLight" : "tableRowDark"; out.write("\n\t "); out.write("<tr class=\""); out.print(trColor); out.write("\">\n\t "); out.write("<td class=\"tableText\">Support License"); out.write("</td>\n\t "); out.write("<td class=\"tableText\">"); out.print(licStatus); out.write("</td>\n\t "); out.write("</tr>\n\n "); trColor = (++trCount % 2 == 0) ? "tableRowLight" : "tableRowDark"; out.write("\n\t "); out.write("<tr class=\""); out.print(trColor); out.write("\">\n\t "); out.write("<td class=\"tableText\">Support Licensor"); out.write("</td>\n"); out.write("<!-- \n\t "); out.write("<td class=\"tableText\">"); out.print(lim.getFeature(License.WT_LICENSOR_FIELD_NAME)); out.write("</td>\n\t\t-->\n\t\t "); out.write("<td class=\"tableText\">WebTelemetry LLC"); out.write("</td>\n\t "); out.write("</tr>\n\n "); trColor = (++trCount % 2 == 0) ? "tableRowLight" : "tableRowDark"; out.write("\n\t "); out.write("<tr class=\""); out.print(trColor); out.write("\">\n\t "); out.write("<td class=\"tableText\">Support Licensee"); out.write("</td>\n\n"); out.write("<!--\n\t "); out.write("<td class=\"tableText\">"); out.print(lim.getFeature(License.WT_LICENSEE_FIELD_NAME)); out.write("</td>\n-->\n\t\t "); out.write("<td class=\"tableText\">WebTelemetry LLC"); out.write("</td>\n\n\t "); out.write("</tr>\n\n\n"); out.write("\n\n "); trColor = (++trCount % 2 == 0) ? "tableRowLight" : "tableRowDark"; out.write("\n\t "); out.write("<tr class=\""); out.print(trColor); out.write("\">\n\t "); out.write("<td class=\"tableText\">Discovery Engine"); out.write("</td>\n\t "); String safariStatus = (Integer.parseInt(lim.getFeature(License.WT_SAFARI_MASTER_ACCOUNT_ID_FIELD_NAME)) > 0 && Integer.parseInt(lim.getFeature(License.WT_SAFARI_USER_COUNT_FIELD_NAME)) > 0) ? "Enabled" : "Disabled"; if (!"Disabled".equals(safariStatus)) { int safariDaysLeft = lim.daysLeft(License.WT_SAFARI_EXPIRATION_FIELD_NAME); if (safariDaysLeft == 0) safariStatus = "Expired"; } out.write("\n\t "); out.write("<td class=\"tableText\">"); out.print(safariStatus); out.write("</td>\n\t "); out.write("</tr>\n\n\t "); if (!"Disabled".equals(safariStatus)) { out.write("\n "); trColor = (++trCount % 2 == 0) ? "tableRowLight" : "tableRowDark"; out.write("\n\t\t "); out.write("<tr class=\""); out.print(trColor); out.write("\">\n\t\t "); out.write("<td class=\"tableText\">Smart Discovery Expiration Date"); out.write("</td>\n\t\t "); out.write("<td class=\"tableText\">"); out.print(lim.getFeature(License.WT_SAFARI_EXPIRATION_FIELD_NAME)); out.write("\n\t\t "); out.write("</tr>\n\t "); } out.write(" \n"); } out.write("\n"); out.write("</table>\n\n"); out.write("<!-- BEGIN FRAMING TABLE:close tags-->\n\t\t"); out.write("</td>\n\t"); out.write("</tr>\n"); out.write("</table>\n"); out.write("<!-- END FRAMING TABLE:close tags-->\n"); out.write("<br>\n\n"); JspRuntimeLibrary.include( request, response, "../includes/footer.jsp" + "?" + "location=" + "admin" + "&" + "help=" + "WTHelp_License.html", out, false); out.write("\n\n "); out.write("</BODY>\n "); out.write("<!-- end list-organiztion.jsp -->\n"); out.write("</HTML>\n"); } catch (Throwable t) { out = _jspx_out; if (out != null && out.getBufferSize() != 0) out.clearBuffer(); if (pageContext != null) pageContext.handlePageException(t); } finally { if (_jspxFactory != null) _jspxFactory.releasePageContext(pageContext); } }
public void _jspService( final javax.servlet.http.HttpServletRequest request, final javax.servlet.http.HttpServletResponse response) throws java.io.IOException, javax.servlet.ServletException { final java.lang.String _jspx_method = request.getMethod(); if (!"GET".equals(_jspx_method) && !"POST".equals(_jspx_method) && !"HEAD".equals(_jspx_method) && !javax.servlet.DispatcherType.ERROR.equals(request.getDispatcherType())) { response.sendError( HttpServletResponse.SC_METHOD_NOT_ALLOWED, "JSPs only permit GET POST or HEAD"); return; } final javax.servlet.jsp.PageContext pageContext; javax.servlet.http.HttpSession session = null; final javax.servlet.ServletContext application; final javax.servlet.ServletConfig config; javax.servlet.jsp.JspWriter out = null; final java.lang.Object page = this; javax.servlet.jsp.JspWriter _jspx_out = null; javax.servlet.jsp.PageContext _jspx_page_context = null; try { response.setContentType("text/html; charset=UTF-8"); 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("\n"); out.write(" \n"); out.write(" "); request.setCharacterEncoding("utf-8"); out.write('\n'); out.write(' '); movie.admin.filmBean gb = null; gb = (movie.admin.filmBean) _jspx_page_context.getAttribute("gb", javax.servlet.jsp.PageContext.PAGE_SCOPE); if (gb == null) { gb = new movie.admin.filmBean(); _jspx_page_context.setAttribute("gb", gb, javax.servlet.jsp.PageContext.PAGE_SCOPE); } out.write('\n'); out.write(' '); movie.admin.film _film = null; _film = (movie.admin.film) _jspx_page_context.getAttribute("_film", javax.servlet.jsp.PageContext.PAGE_SCOPE); if (_film == null) { _film = new movie.admin.film(); _jspx_page_context.setAttribute("_film", _film, javax.servlet.jsp.PageContext.PAGE_SCOPE); } out.write('\n'); out.write(' '); org.apache.jasper.runtime.JspRuntimeLibrary.introspect( _jspx_page_context.findAttribute("_film"), request); out.write("\n"); out.write(" \n"); out.write("\n"); out.write(" "); String action = request.getParameter("action"); if (action.equals("list")) { ArrayList<film> films = gb.getDBlist(); request.setAttribute("datas", films); pageContext.forward("admin_mode.jsp"); } if (action.equals("back")) { ArrayList<film> films = gb.getDBlist(); request.setAttribute("datas", films); pageContext.forward("admin_mode.jsp"); } else if (action.equals("insert")) { if (gb.insertDB(_film)) { response.sendRedirect("film_control.jsp?action=list"); } else throw new Exception("DB 입력 오류"); } else if (action.equals("delete")) { if (gb.deleteDB(_film.getId_film())) { response.sendRedirect("film_control.jsp?action=list"); } else throw new Exception("DB 삭제 오류"); } // else if(action.equals("update")){ // } else { } out.write("\n"); out.write(" \n"); out.write( "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">\n"); out.write("<html>\n"); out.write("<head>\n"); out.write("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">\n"); out.write("<title>Insert title here</title>\n"); out.write("</head>\n"); out.write("<body>\n"); out.write("\n"); out.write("</body>\n"); out.write("</html>"); } catch (java.lang.Throwable t) { if (!(t instanceof javax.servlet.jsp.SkipPageException)) { out = _jspx_out; if (out != null && out.getBufferSize() != 0) try { if (response.isCommitted()) { out.flush(); } else { out.clearBuffer(); } } catch (java.io.IOException e) { } if (_jspx_page_context != null) _jspx_page_context.handlePageException(t); else throw new ServletException(t); } } finally { _jspxFactory.releasePageContext(_jspx_page_context); } }
public void _jspService(HttpServletRequest request, HttpServletResponse response) throws java.io.IOException, ServletException { JspFactory _jspxFactory = null; javax.servlet.jsp.PageContext pageContext = null; HttpSession session = null; ServletContext application = null; ServletConfig config = null; JspWriter out = null; Object page = this; JspWriter _jspx_out = null; try { _jspxFactory = JspFactory.getDefaultFactory(); response.setContentType("text/html;charset=utf-8"); pageContext = _jspxFactory.getPageContext( this, request, response, "/jsp/GeneralError.jsp", true, 8192, true); application = pageContext.getServletContext(); config = pageContext.getServletConfig(); session = pageContext.getSession(); out = pageContext.getOut(); _jspx_out = out; out.write("\n"); out.write("\n\n"); out.write("\n"); out.write("\n"); out.write("\n\n"); out.write("\n"); out.write("\n\n"); out.write("\n"); java.util.Date now = null; synchronized (pageContext) { now = (java.util.Date) pageContext.getAttribute("now", PageContext.PAGE_SCOPE); if (now == null) { try { now = (java.util.Date) java.beans.Beans.instantiate( this.getClass().getClassLoader(), "java.util.Date"); } catch (ClassNotFoundException exc) { throw new InstantiationException(exc.getMessage()); } catch (Exception exc) { throw new ServletException("Cannot create bean of class " + "java.util.Date", exc); } pageContext.setAttribute("now", now, PageContext.PAGE_SCOPE); } } out.write("\n\n"); out.write("\n"); out.write("<script type=\"text/javascript\" src=\""); if (_jspx_meth_c_url_0(pageContext)) return; out.write("\">"); out.write("</script>\n\n"); out.write("\n"); if (_jspx_meth_html_xhtml_0(pageContext)) return; out.write("\n"); out.write("\n\n\n"); out.write("\n"); out.write("<!--"); out.write("<table border=\"1\">\n "); out.write("<tr>\n "); out.write("<td>\n "); out.write("<u>"); if (_jspx_meth_fmt_message_0(pageContext)) return; out.write("</u>"); out.write("<br/>"); out.write("<br/>-->\n "); out.write("<span class=\"error\">"); if (_jspx_meth_fmt_message_1(pageContext)) return; out.write("</span>\n "); out.write("<br/>\n "); out.write("<!--"); out.write("</td>\n "); out.write("</tr>\n"); out.write("</table>-->\n\n"); /* ---- c:if ---- */ org.apache.taglibs.standard.tag.el.core.IfTag _jspx_th_c_if_0 = (org.apache.taglibs.standard.tag.el.core.IfTag) _jspx_tagPool_c_if_test.get(org.apache.taglibs.standard.tag.el.core.IfTag.class); _jspx_th_c_if_0.setPageContext(pageContext); _jspx_th_c_if_0.setParent(null); _jspx_th_c_if_0.setTest("${not empty querygroupresult}"); int _jspx_eval_c_if_0 = _jspx_th_c_if_0.doStartTag(); if (_jspx_eval_c_if_0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) { do { out.write("\n"); out.write("<table>\n\t"); /* ---- c:forEach ---- */ org.apache.taglibs.standard.tag.el.core.ForEachTag _jspx_th_c_forEach_0 = (org.apache.taglibs.standard.tag.el.core.ForEachTag) _jspx_tagPool_c_forEach_var_items.get( org.apache.taglibs.standard.tag.el.core.ForEachTag.class); _jspx_th_c_forEach_0.setPageContext(pageContext); _jspx_th_c_forEach_0.setParent(_jspx_th_c_if_0); _jspx_th_c_forEach_0.setItems("${querygroupresult.resultItems}"); _jspx_th_c_forEach_0.setVar("resultitem"); int[] _jspx_push_body_count_c_forEach_0 = new int[] {0}; try { int _jspx_eval_c_forEach_0 = _jspx_th_c_forEach_0.doStartTag(); if (_jspx_eval_c_forEach_0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) { do { out.write("\n "); out.write("\n "); out.write("\n "); out.write("<tr valign=\"top\">\n "); out.write("<td width=\"60%\">"); out.write("<b>"); if (_jspx_meth_fmt_message_2( _jspx_th_c_forEach_0, pageContext, _jspx_push_body_count_c_forEach_0)) return; out.write(":"); out.write("</b>"); out.write("</td>\n "); out.write("<td width=\"40%\">"); if (_jspx_meth_c_out_0( _jspx_th_c_forEach_0, pageContext, _jspx_push_body_count_c_forEach_0)) return; out.write("</td>\n "); out.write("</tr>\n \n "); out.write("\n "); out.write("<tr valign=\"top\">\n "); out.write("<td width=\"60%\">"); out.write("<b>"); if (_jspx_meth_fmt_message_3( _jspx_th_c_forEach_0, pageContext, _jspx_push_body_count_c_forEach_0)) return; out.write(":"); out.write("</b>"); out.write("</td>\n "); out.write("<td width=\"40%\">"); if (_jspx_meth_c_out_1( _jspx_th_c_forEach_0, pageContext, _jspx_push_body_count_c_forEach_0)) return; out.write("</td>\n "); out.write("</tr>\n \n "); out.write("\n "); out.write("<tr valign=\"top\">\n "); out.write("<td width=\"60%\">"); out.write("<b>"); if (_jspx_meth_fmt_message_4( _jspx_th_c_forEach_0, pageContext, _jspx_push_body_count_c_forEach_0)) return; out.write(":"); out.write("</b>"); out.write("</td>\n "); out.write("<td width=\"40%\">"); if (_jspx_meth_fmt_formatNumber_0( _jspx_th_c_forEach_0, pageContext, _jspx_push_body_count_c_forEach_0)) return; out.write("</td>\n "); out.write("</tr>\n \n "); if (_jspx_meth_c_if_1( _jspx_th_c_forEach_0, pageContext, _jspx_push_body_count_c_forEach_0)) return; out.write("\n \n "); out.write("\n "); out.write("<tr valign=\"top\">\n "); out.write("<td width=\"60%\">"); out.write("<b>"); if (_jspx_meth_fmt_message_7( _jspx_th_c_forEach_0, pageContext, _jspx_push_body_count_c_forEach_0)) return; out.write("</b>"); out.write("</td>\n "); out.write("<td width=\"40%\">\n \t"); if (_jspx_meth_c_choose_0( _jspx_th_c_forEach_0, pageContext, _jspx_push_body_count_c_forEach_0)) return; out.write("\n\n "); out.write("</td>\n "); out.write("</tr>\n \n"); out.write(" \n"); out.write("\n "); int evalDoAfterBody = _jspx_th_c_forEach_0.doAfterBody(); if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN) break; } while (true); } if (_jspx_th_c_forEach_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) return; } catch (Throwable _jspx_exception) { while (_jspx_push_body_count_c_forEach_0[0]-- > 0) out = pageContext.popBody(); _jspx_th_c_forEach_0.doCatch(_jspx_exception); } finally { _jspx_th_c_forEach_0.doFinally(); _jspx_tagPool_c_forEach_var_items.reuse(_jspx_th_c_forEach_0); } out.write("\n"); out.write("</table>\n"); int evalDoAfterBody = _jspx_th_c_if_0.doAfterBody(); if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN) break; } while (true); } if (_jspx_th_c_if_0.doEndTag() == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) return; _jspx_tagPool_c_if_test.reuse(_jspx_th_c_if_0); out.write("\n\n\n"); } catch (Throwable t) { out = _jspx_out; if (out != null && out.getBufferSize() != 0) out.clearBuffer(); if (pageContext != null) pageContext.handlePageException(t); } finally { if (_jspxFactory != null) _jspxFactory.releasePageContext(pageContext); } }
public void _jspService(HttpServletRequest request, HttpServletResponse response) throws java.io.IOException, ServletException { JspFactory _jspxFactory = null; javax.servlet.jsp.PageContext pageContext = null; HttpSession session = null; ServletContext application = null; ServletConfig config = null; JspWriter out = null; Object page = this; JspWriter _jspx_out = null; try { _jspxFactory = JspFactory.getDefaultFactory(); response.setContentType("text/html;charset=utf-8"); pageContext = _jspxFactory.getPageContext( this, request, response, "/jsp/GeneralError.jsp", true, 8192, true); application = pageContext.getServletContext(); config = pageContext.getServletConfig(); session = pageContext.getSession(); out = pageContext.getOut(); _jspx_out = out; out.write("\n"); out.write("\n\n"); out.write("\n"); out.write("\n"); out.write("\n\n"); out.write("\n"); out.write("\n\n"); out.write("\n"); java.util.Date now = null; synchronized (pageContext) { now = (java.util.Date) pageContext.getAttribute("now", PageContext.PAGE_SCOPE); if (now == null) { try { now = (java.util.Date) java.beans.Beans.instantiate( this.getClass().getClassLoader(), "java.util.Date"); } catch (ClassNotFoundException exc) { throw new InstantiationException(exc.getMessage()); } catch (Exception exc) { throw new ServletException("Cannot create bean of class " + "java.util.Date", exc); } pageContext.setAttribute("now", now, PageContext.PAGE_SCOPE); } } out.write("\n\n"); out.write("\n"); out.write("<script type=\"text/javascript\" src=\""); if (_jspx_meth_c_url_0(pageContext)) return; out.write("\">"); out.write("</script>\n\n"); out.write("\n"); if (_jspx_meth_html_xhtml_0(pageContext)) return; out.write("\n"); out.write("\n\n"); if (_jspx_meth_html_html_0(pageContext)) return; } catch (Throwable t) { out = _jspx_out; if (out != null && out.getBufferSize() != 0) out.clearBuffer(); if (pageContext != null) pageContext.handlePageException(t); } finally { if (_jspxFactory != null) _jspxFactory.releasePageContext(pageContext); } }