Ejemplo n.º 1
0
  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=ISO-8859-1");
      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 HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">\r\n");
      out.write("<html>\r\n");
      out.write("<head>\r\n");
      out.write("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=ISO-8859-1\">\r\n");
      out.write("<title>Insert title here</title>\r\n");
      out.write("</head>\r\n");
      out.write("<body>\r\n");
      out.write("\t<h1>");
      out.write(
          (java.lang.String)
              org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                  "${greeting}",
                  java.lang.String.class,
                  (javax.servlet.jsp.PageContext) _jspx_page_context,
                  null,
                  false));
      out.write("</h1>\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);
    }
  }
Ejemplo n.º 2
0
  private void _jspService(
      javax.servlet.http.HttpServletRequest request,
      javax.servlet.http.HttpServletResponse response,
      com.caucho.jsp.PageContextImpl pageContext,
      javax.servlet.ServletContext application,
      javax.servlet.http.HttpSession session,
      TagState _jsp_state)
      throws Throwable {
    javax.servlet.jsp.JspWriter out = pageContext.getOut();
    final javax.el.ELContext _jsp_env = pageContext.getELContext();
    javax.servlet.ServletConfig config = getServletConfig();
    javax.servlet.Servlet page = this;
    javax.servlet.jsp.tagext.JspTag _jsp_parent_tag = null;
    com.caucho.jsp.PageContextImpl _jsp_parentContext = pageContext;
    response.setContentType("text/html");
    response.setCharacterEncoding("utf-8");

    out.write(_jsp_string0, 0, _jsp_string0.length);
    if (false == session.getAttribute("loggedin")) {
      response.sendRedirect("login.jsp");
    } else if (null == session.getAttribute("loggedin")) {
      response.sendRedirect("login.jsp");
    }
    out.write(_jsp_string1, 0, _jsp_string1.length);
  }
Ejemplo n.º 3
0
 public void _jspService(
     javax.servlet.http.HttpServletRequest request,
     javax.servlet.http.HttpServletResponse response)
     throws java.io.IOException, javax.servlet.ServletException {
   com.caucho.server.webapp.WebApp _jsp_application = _caucho_getApplication();
   javax.servlet.ServletContext application = _jsp_application;
   com.caucho.jsp.PageContextImpl pageContext =
       _jsp_application
           .getJspApplicationContext()
           .allocatePageContext(
               this, _jsp_application, request, response, null, null, 8192, true, false);
   javax.servlet.jsp.PageContext _jsp_parentContext = pageContext;
   javax.servlet.jsp.JspWriter out = pageContext.getOut();
   final javax.el.ELContext _jsp_env = pageContext.getELContext();
   javax.servlet.ServletConfig config = getServletConfig();
   javax.servlet.Servlet page = this;
   response.setContentType("text/html;charset=UTF-8");
   request.setCharacterEncoding("UTF-8");
   try {
     out.write(_jsp_string0, 0, _jsp_string0.length);
   } catch (java.lang.Throwable _jsp_e) {
     pageContext.handlePageException(_jsp_e);
   } finally {
     _jsp_application.getJspApplicationContext().freePageContext(pageContext);
   }
 }
Ejemplo n.º 4
0
  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");
      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(" \n");
      out.write("<html>\n");
      out.write("    <head>\n");
      out.write(
          "        <meta http-equiv=\"Content-Type\" content=\"text/html; charset=ISO-8859-1\">\n");
      out.write("        <title>Login page | Hello World Struts application in Eclipse</title>\n");
      out.write("    </head>\n");
      out.write("    <body>\n");
      out.write("    <h1>Login</h1>\n");
      out.write("    ");
      if (_jspx_meth_html_005fform_005f0(_jspx_page_context)) return;
      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);
    }
  }
Ejemplo n.º 5
0
  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=ISO-8859-1");
      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 HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">\r\n");
      out.write("<html>\r\n");
      out.write("<head>\r\n");
      out.write("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=ISO-8859-1\">\r\n");
      out.write("<title>Insert title here</title>\r\n");
      out.write("</head>\r\n");
      out.write("<body>\r\n");
      out.write("<form action=\"ClientServlet\">\r\n");
      out.write("Enter the bill amount <input type=\"text\" name=\"bill\"> \r\n");
      out.write("<input type=\"submit\" value=\"submit\">\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 {
            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);
    }
  }
Ejemplo n.º 6
0
  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");
      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("<body>\n");
      out.write("\t<div id=\"goschool\">\n");
      out.write("\t\t<div id=\"ceiling\"></div>\n");
      out.write("\t\t<div id=\"left-title\"></div>\n");
      out.write("\t\t\t<div id=\"title\">\n");
      out.write(
          "\t\t\t\t<img src=\"../img/Chandelier_fin.png\" height=\"150\" width=\"\" alt=\"\"></div>\n");
      out.write("\t\t\t\t\n");
      out.write("\t\t\t\t<div id=\"right-title\"></div>\n");
      out.write("\t\t\n");
      out.write("\t\t<div id=\"prop-left\"></div>\n");
      out.write("\t\t<div id=\"box\">\n");
      out.write("\t\t\t<div id=\"tag\">\n");
      out.write("\t\t\t\t<div id=\"logout\">\n");
      out.write("\t\t\t\t\t<button name=\"submit1\" value=\"logout\">\n");
      out.write("\t\t\t\t\t\tログアウト\n");
      out.write("\t\t\t\t\t</button>\n");
      out.write("\t\t\t\t</div>\n");
      out.write("\t\t\t</div>");
    } 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);
    }
  }
Ejemplo n.º 7
0
  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");
      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');
      out.write('\n');
      response.sendRedirect(response.encodeRedirectURL(request.getContextPath() + "/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);
    }
  }
Ejemplo n.º 8
0
  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");
      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("<div id=\"popupContact\">\n");
      out.write("    <a id=\"popupContactClose\">x</a>\n");
      out.write("    <h1>Help for the search lesson</h1>\n");
      out.write("    <p id=\"contactArea\">\n");
      out.write("        At first this page has XSS-Flaws\n");
      out.write("        <p>\n");
      out.write("    Try some input, and try to inject html....\n");
      out.write("        </p>\n");
      out.write("    <p>\n");
      out.write("        Look for the SearchController....<br/>\n");
      out.write(
          "        Then try to fix the problem, easiest way is to fix the problem in corresponding jsp (search.jsp)<br/>\n");
      out.write("        Tip: In the jsp you have got already the core Tag library....\n");
      out.write("    </p>\n");
      out.write("\n");
      out.write("    </p>\n");
      out.write("</div>\n");
      out.write("<div id=\"backgroundPopup\"></div>");
    } 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);
      }
    } 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");
      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(
          "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">\n");
      out.write("\n");
      out.write("<html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"en\" lang=\"en\">\n");
      out.write("    <head>\n");
      out.write("</head>\n");
      out.write("\n");
      out.write("<body>\n");
      out.write("\n");

      response.sendRedirect("/yourwebapp/");

      out.write("\n");
      out.write("\n");
      out.write("</body>\n");
      out.write("</html>\n");
    } 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;
    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("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      if (_jspx_meth_c_005fif_005f0(_jspx_page_context)) return;
      out.write('\n');
      out.write('\n');
      if (_jspx_meth_c_005fif_005f1(_jspx_page_context)) return;
      out.write('\n');
    } 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);
    }
  }
Ejemplo n.º 11
0
  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=ISO-8859-1");
      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 HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">\r\n");
      out.write("<html>\r\n");
      out.write("<head>\r\n");
      out.write("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=ISO-8859-1\">\r\n");
      out.write("<title>Insert title here</title>\r\n");
      out.write("<link rel=\"stylesheet\" type=\"text/css\" href=\"styles.css\">\r\n");
      out.write("\r\n");
      out.write("</head>\r\n");
      out.write("<body>\r\n");
      out.write("<h2 class=\"vzh2\" align=\"center\">© 2015, Verizon Confidential</h2>\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);
    }
  }
Ejemplo n.º 12
0
  public void
  _jspService(javax.servlet.http.HttpServletRequest request,
              javax.servlet.http.HttpServletResponse response)
    throws java.io.IOException, javax.servlet.ServletException
  {
    javax.servlet.http.HttpSession session = request.getSession(true);
    com.caucho.server.webapp.WebApp _jsp_application = _caucho_getApplication();
    javax.servlet.ServletContext application = _jsp_application;
    com.caucho.jsp.PageContextImpl pageContext = _jsp_application.getJspApplicationContext().allocatePageContext(this, _jsp_application, request, response, null, session, 8192, true, false);
    javax.servlet.jsp.PageContext _jsp_parentContext = pageContext;
    javax.servlet.jsp.JspWriter out = pageContext.getOut();
    final javax.el.ELContext _jsp_env = pageContext.getELContext();
    javax.servlet.ServletConfig config = getServletConfig();
    javax.servlet.Servlet page = this;
    response.setContentType("text/html;charset=EUC-KR");
    request.setCharacterEncoding("EUC-KR");
    try {
      out.write(_jsp_string0, 0, _jsp_string0.length);
      
	String filename = request.getParameter("filename");
	String downname = request.getParameter("downname");
	FormDataDownload formData = new FormDataDownload(response, new File(filename), null, null);
	try
	{
		formData.download();
	}catch(FileNotFoundException e)
	{
		
      out.write(_jsp_string1, 0, _jsp_string1.length);
      out.print(( e ));
      out.write(_jsp_string2, 0, _jsp_string2.length);
      
		return;
	}catch(IOException e)
	{
		
      out.write(_jsp_string3, 0, _jsp_string3.length);
      out.print(( e ));
      out.write(_jsp_string4, 0, _jsp_string4.length);
      
		return;
	}catch(Exception e)
	{
		System.out.println("Exception Error~~" + e);
	}

      out.write('\n');
    } catch (java.lang.Throwable _jsp_e) {
      pageContext.handlePageException(_jsp_e);
    } finally {
      _jsp_application.getJspApplicationContext().freePageContext(pageContext);
    }
  }
Ejemplo n.º 13
0
  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(
          "<!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("\tWelcome to Zhuangbility student manage system! \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 {
            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);
    }
  }
Ejemplo n.º 14
0
  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");
      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("<html>\r\n");
      out.write("<head>\r\n");
      out.write("    <title>Spring 3 MVC Series - Contact Manager</title>\r\n");
      out.write("</head>\r\n");
      out.write("<body>\r\n");
      out.write("<h2>Contact Manager</h2>\r\n");
      if (_jspx_meth_form_005fform_005f0(_jspx_page_context)) return;
      out.write("\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);
    }
  }
Ejemplo n.º 15
0
  public void _jspService(
      javax.servlet.http.HttpServletRequest request,
      javax.servlet.http.HttpServletResponse response)
      throws java.io.IOException, javax.servlet.ServletException {
    com.caucho.jsp.QPageContext pageContext =
        (com.caucho.jsp.QPageContext)
            com.caucho.jsp.QJspFactory.create()
                .getPageContext(this, request, response, null, true, 8192, true);
    javax.servlet.jsp.JspWriter out = (javax.servlet.jsp.JspWriter) pageContext.getOut();
    javax.servlet.ServletConfig config = getServletConfig();
    javax.servlet.Servlet page = this;
    javax.servlet.http.HttpSession session = pageContext.getSession();
    javax.servlet.ServletContext application = pageContext.getServletContext();
    response.setContentType("text/html;charset=UTF-8");
    request.setCharacterEncoding("UTF-8");
    org.apache.struts.taglib.html.RewriteTag _jsp_tag0 = null;
    org.apache.struts.taglib.bean.MessageTag _jsp_tag1 = null;
    try {
      pageContext.write(_jsp_string0, 0, _jsp_string0.length);
      pageContext.write(_jsp_string0, 0, _jsp_string0.length);
      pageContext.write(_jsp_string1, 0, _jsp_string1.length);
      if (_jsp_tag0 == null) {
        _jsp_tag0 = new org.apache.struts.taglib.html.RewriteTag();
        _jsp_tag0.setPageContext(pageContext);
        _jsp_tag0.setParent((javax.servlet.jsp.tagext.Tag) null);
        _jsp_tag0.setPage("/images/logo.gif");
      }

      int _jspEval2 = _jsp_tag0.doStartTag();
      int _jsp_endTagVar3 = _jsp_tag0.doEndTag();
      if (_jsp_endTagVar3 == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) return;
      pageContext.write(_jsp_string2, 0, _jsp_string2.length);
      if (_jsp_tag1 == null) {
        _jsp_tag1 = new org.apache.struts.taglib.bean.MessageTag();
        _jsp_tag1.setPageContext(pageContext);
        _jsp_tag1.setParent((javax.servlet.jsp.tagext.Tag) null);
        _jsp_tag1.setKey("module.admin");
      }

      _jsp_tag1.doStartTag();
      pageContext.write(_jsp_string3, 0, _jsp_string3.length);
    } catch (java.lang.Throwable _jsp_e) {
      pageContext.handlePageException(_jsp_e);
    } finally {
      if (_jsp_tag0 != null) _jsp_tag0.release();
      if (_jsp_tag1 != null) _jsp_tag1.release();
      JspFactory.getDefaultFactory().releasePageContext(pageContext);
    }
  }
Ejemplo n.º 16
0
  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");
      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');
      out.write('\n');

      String id = request.getParameter("id");
      String user = request.getParameter("u");
      Upload newupload = new Upload(pageContext, request, response, out, id, "lizozom");
      response.sendRedirect(request.getHeader("referer"));

      out.write('\r');
      out.write('\n');
    } 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);
    }
  }
Ejemplo n.º 17
0
  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("\r\n");
      out.write("<div class=\"row-fluid\" style=\"margin-top: 30px;\">\r\n");
      out.write("\t<div class=\"span12\">\r\n");
      out.write("\t\t<div class=\"foot\">Copyright © 2015-2016 Jae</div>\r\n");
      out.write("\t</div>\r\n");
      out.write("</div>");
    } 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(
          "<html><head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" /><meta name=\"viewport\" content=\"width=device-width, initial-scale=1, user-scalable=no\" /><title>订单详情</title></head><body><div align=\"center\" style=\"background:url(bgg.jpg) no-repeat ; background-size: cover; -moz-background-size: cover; \"><table style=\"margin-top: 20px\" align=\"left\" cellpadding=\"5px\" cellspacing=\"0px\" ><tr><td>&nbsp&nbsp采购日期: 2015-09-11</td></tr><tr><td>&nbsp&nbsp订单总数: 2</td></tr><tr><td>&nbsp--------------------------------------</td></tr><tr><td>&nbsp&nbsp采购日期: 2015-09-15</td></tr><tr><td>&nbsp&nbsp订单总数: 3</td></tr><tr><td>&nbsp--------------------------------------</td></tr><tr><td>&nbsp&nbsp采购日期: 2015-10-12</td></tr><tr><td>&nbsp&nbsp订单总数: 1</td></tr><tr><td>&nbsp--------------------------------------</td></tr><tr><td>&nbsp&nbsp采购日期: 2015-10-16</td></tr><tr><td>&nbsp&nbsp订单总数: 1</td></tr><tr><td>&nbsp--------------------------------------</td></tr><tr><td>&nbsp&nbsp采购日期: 2015-10-23</td></tr><tr><td>&nbsp&nbsp订单总数: 2</td></tr><tr><td>&nbsp--------------------------------------</td></tr><tr><td>详情请登录浩方供应商门户<br>http://sp.hofan.cn/<br></td></tr><br></table></body>");
    } 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);
    }
  }
Ejemplo n.º 19
0
  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("<meta http-equiv=\"refresh\" content=\"0; url=bennu-admin/\">");
    } 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);
    }
  }
Ejemplo n.º 20
0
  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("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      if (_jspx_meth_c_005fset_005f0(_jspx_page_context)) return;
      out.write('\r');
      out.write('\n');
      out.write("\r\n");
      out.write("<script type=\"text/javascript\">\r\n");
      out.write("\t$(document).ready(function() {\r\n");
      out.write("\t\tvar mmid = $(\"#meid\").val();\r\n");
      out.write("\t\t$(\"#updatemessage\").validate({\r\n");
      out.write("\t\t\trules : {\r\n");
      out.write("\t\t\t\tmessagefor : {\r\n");
      out.write("\t\t\t\t  \trequired : true,\r\n");
      out.write("\t\t\t\t    remote: {\r\n");
      out.write("\t\t\t\t        type: \"get\",\r\n");
      out.write("\t                    url: \"");
      out.write(
          (java.lang.String)
              org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                  "${ctx}",
                  java.lang.String.class,
                  (javax.servlet.jsp.PageContext) _jspx_page_context,
                  null,
                  false));
      out.write("/admin/spiritualmessage/getupdatecheck.do?id=\"+mmid,\r\n");
      out.write("\t                    data: {\r\n");
      out.write("\t                    \tmessagefor: function(){\r\n");
      out.write("\t                            return $('#formessage').val();\r\n");
      out.write("\t                       }, \r\n");
      out.write("\t                    \r\n");
      out.write("\t                    },\r\n");
      out.write("\t                  \r\n");
      out.write("\t                 },\r\n");
      out.write("\t\t\t\t  },\r\n");
      out.write("\t\t\t\t  title:{\r\n");
      out.write("\t\t\t\t\t   required : true\r\n");
      out.write("\t\t\t\t\t  }\r\n");
      out.write("\t\t\t\t},\r\n");
      out.write("\t\t\tmessages : {\r\n");
      out.write("\t\t\t\tmessagefor : {\r\n");
      out.write("\t\t\t\t\trequired : \"messagefor is required\",\r\n");
      out.write("\t\t\t\t\tremote:\"messagefor has exist!\"\r\n");
      out.write("\t\t\t\t},\r\n");
      out.write("\t\t\t\ttitle : {\r\n");
      out.write("\t\t\t\t\trequired : \"title is required\"\r\n");
      out.write("\t\t\t\t}\r\n");
      out.write("\t\t\t},\r\n");
      out.write("\t\t\terrorPlacement : function(error, element) {\r\n");
      out.write("\t\t\t\t/* error.appendTo(element.parent().next()); */\r\n");
      out.write("\t\t\t\terror.insertAfter(element.parent());\r\n");
      out.write("\t\t\t}\r\n");
      out.write("\t\t\t\r\n");
      out.write("\t\t});\r\n");
      out.write("\t\t\r\n");
      out.write("\t});\r\n");
      out.write("\r\n");
      out.write("</script>\r\n");
      out.write("<div class=\"edit\">\r\n");
      out.write("\t<h1>Edit Spiritual Message</h1>\r\n");
      out.write("\t<form action=\"");
      out.write(
          (java.lang.String)
              org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                  "${ctx}",
                  java.lang.String.class,
                  (javax.servlet.jsp.PageContext) _jspx_page_context,
                  null,
                  false));
      out.write(
          "/admin/spiritualmessage/updatespiritualmessage.do\" method=\"post\" id=\"updatemessage\">\r\n");
      out.write("\t    <input type=\"hidden\" name=\"messageid\" value=\"");
      out.write(
          (java.lang.String)
              org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                  "${message.id}",
                  java.lang.String.class,
                  (javax.servlet.jsp.PageContext) _jspx_page_context,
                  null,
                  false));
      out.write("\" id=\"meid\"/>\r\n");
      out.write("\t\t<table>\r\n");
      out.write("\t\t\t<tr>\r\n");
      out.write("\t\t\t\t<td>Message FOR:<span>*</span>\r\n");
      out.write("\t\t\t\t</td>\r\n");
      out.write("\t\t\t\t<td><select name=\"messagefor\" id=\"formessage\">\r\n");
      out.write("\t\t\t\t\t\t<option value=\"\">---please choose---</option>\r\n");
      out.write("\t\t\t\t\t\t");
      if (_jspx_meth_c_005fforEach_005f0(_jspx_page_context)) return;
      out.write("\r\n");
      out.write("\t\t\t\t</select></td>\r\n");
      out.write("\t\t\t</tr>\r\n");
      out.write("\t\t\t<tr>\r\n");
      out.write("\t\t  <td>Title:<span>*</span></td>\r\n");
      out.write("\t\t  <td>\r\n");
      out.write("        <textarea name=\"title\" id=\"Messagetitle\">");
      out.write(
          (java.lang.String)
              org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                  "${message.title}",
                  java.lang.String.class,
                  (javax.servlet.jsp.PageContext) _jspx_page_context,
                  null,
                  false));
      out.write("</textarea>\r\n");
      out.write("       </td>\r\n");
      out.write("\t\t</tr>\r\n");
      out.write("\t\t\t<tr>\r\n");
      out.write("\t\t\t\t<td>Top Message:</td>\r\n");
      out.write("\t\t\t\t<td><textarea name=\"topMessage\" id=\"Messagetop\">");
      out.write(
          (java.lang.String)
              org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                  "${message.topMessage}",
                  java.lang.String.class,
                  (javax.servlet.jsp.PageContext) _jspx_page_context,
                  null,
                  false));
      out.write("</textarea></td>\r\n");
      out.write("\t\t\t</tr>\r\n");
      out.write("\t\t\t<tr>\r\n");
      out.write("\t\t\t\t<td>Bottom Message:</td>\r\n");
      out.write("\t\t\t\t<td><textarea name=\"bottomMessage\" id=\"Messagebottom\">");
      out.write(
          (java.lang.String)
              org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                  "${message.bottomMessage}",
                  java.lang.String.class,
                  (javax.servlet.jsp.PageContext) _jspx_page_context,
                  null,
                  false));
      out.write("</textarea></td>\r\n");
      out.write("\t\t\t</tr>\r\n");
      out.write("\t\t</table>\r\n");
      out.write("\t\t<div class=\"marginButton\">\r\n");
      out.write("\t\t\t<input type=\"submit\" value=\"save\" /> \r\n");
      out.write(
          "\t\t\t<input type=\"button\" value=\"cancel\" onclick=\"javascript:location.href='");
      out.write(
          (java.lang.String)
              org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                  "${ctx}",
                  java.lang.String.class,
                  (javax.servlet.jsp.PageContext) _jspx_page_context,
                  null,
                  false));
      out.write("/admin/spiritualmessage/gotospiritualmessage.do'\" />\r\n");
      out.write("\t\t</div>\r\n");
      out.write("\t</form>\r\n");
      out.write("</div>");
    } 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);
    }
  }
Ejemplo n.º 21
0
  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("\r\n");
      out.write(
          "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">\r\n");
      out.write("<html>\r\n");
      out.write("<head>\r\n");
      out.write("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">\r\n");
      out.write("<meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">\r\n");
      out.write("<title>短信设置</title>\r\n");
      out.write('\r');
      out.write('\n');
      out.write("\r\n");
      out.write("\r\n");
      if (_jspx_meth_c_005fif_005f0(_jspx_page_context)) return;
      out.write('\r');
      out.write('\n');
      if (_jspx_meth_c_005fif_005f1(_jspx_page_context)) return;
      out.write("\r\n");
      out.write("\r\n");
      if (_jspx_meth_c_005fset_005f2(_jspx_page_context)) return;
      out.write('\r');
      out.write('\n');
      if (_jspx_meth_c_005fset_005f3(_jspx_page_context)) return;
      out.write('\r');
      out.write('\n');
      if (_jspx_meth_c_005fset_005f4(_jspx_page_context)) return;
      out.write("\r\n");
      out.write("<script type=\"text/javascript\">\r\n");
      out.write("\tvar globalTimestamp = \"");
      out.write(
          (java.lang.String)
              org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                  "${currentTimestamp}",
                  java.lang.String.class,
                  (javax.servlet.jsp.PageContext) _jspx_page_context,
                  null,
                  false));
      out.write("\";\r\n");
      out.write("\tvar globalLocale = \"");
      out.write(
          (java.lang.String)
              org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                  "${currentLocale}",
                  java.lang.String.class,
                  (javax.servlet.jsp.PageContext) _jspx_page_context,
                  null,
                  false));
      out.write("\";\r\n");
      out.write("\tvar globalSkin = \"");
      out.write(
          (java.lang.String)
              org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                  "${currentSkin}",
                  java.lang.String.class,
                  (javax.servlet.jsp.PageContext) _jspx_page_context,
                  null,
                  false));
      out.write("\";\r\n");
      out.write("\tvar globalClientWidth = document.documentElement.clientWidth;\r\n");
      out.write("\tvar globalClientHeight = document.documentElement.clientHeight;\r\n");
      out.write("\tvar globalWebRoot = \"");
      out.write(
          (java.lang.String)
              org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                  "${pageContext.request.contextPath}",
                  java.lang.String.class,
                  (javax.servlet.jsp.PageContext) _jspx_page_context,
                  null,
                  false));
      out.write("\";\r\n");
      out.write("\tvar urlPrefix = \"");
      out.write(
          (java.lang.String)
              org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                  "${urlPrefix}",
                  java.lang.String.class,
                  (javax.servlet.jsp.PageContext) _jspx_page_context,
                  null,
                  false));
      out.write("\";\r\n");
      out.write("</script>");
      out.write("\r\n");
      out.write("\r\n");
      out.write("<script src=\"");
      out.write(
          (java.lang.String)
              org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                  "${pageContext.request.contextPath}",
                  java.lang.String.class,
                  (javax.servlet.jsp.PageContext) _jspx_page_context,
                  null,
                  false));
      out.write("/js/seajs/sea.js?");
      out.write(
          (java.lang.String)
              org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                  "${currentTimestamp}",
                  java.lang.String.class,
                  (javax.servlet.jsp.PageContext) _jspx_page_context,
                  null,
                  false));
      out.write("\" type=\"text/javascript\"></script>\r\n");
      out.write("<script src=\"");
      out.write(
          (java.lang.String)
              org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                  "${pageContext.request.contextPath}",
                  java.lang.String.class,
                  (javax.servlet.jsp.PageContext) _jspx_page_context,
                  null,
                  false));
      out.write("/js/jquery/jquery-1.11.0.min.js?");
      out.write(
          (java.lang.String)
              org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                  "${currentTimestamp}",
                  java.lang.String.class,
                  (javax.servlet.jsp.PageContext) _jspx_page_context,
                  null,
                  false));
      out.write("\" type=\"text/javascript\"></script>\r\n");
      out.write("<script type=\"text/javascript\">seajs.config({vars: { currentLocale: '");
      out.write(
          (java.lang.String)
              org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                  "${currentLocale}",
                  java.lang.String.class,
                  (javax.servlet.jsp.PageContext) _jspx_page_context,
                  null,
                  false));
      out.write("',currentSkin:'");
      out.write(
          (java.lang.String)
              org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                  "${currentSkin}",
                  java.lang.String.class,
                  (javax.servlet.jsp.PageContext) _jspx_page_context,
                  null,
                  false));
      out.write("'},base: '");
      out.write(
          (java.lang.String)
              org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                  "${pageContext.request.contextPath}",
                  java.lang.String.class,
                  (javax.servlet.jsp.PageContext) _jspx_page_context,
                  null,
                  false));
      out.write("/',map: [[ /^(.*\\.(?:css|js))(.*)$/i, '$1?");
      out.write(
          (java.lang.String)
              org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                  "${currentTimestamp}",
                  java.lang.String.class,
                  (javax.servlet.jsp.PageContext) _jspx_page_context,
                  null,
                  false));
      out.write("' ]],charset: 'UTF-8'});</script>\r\n");
      out.write("<link rel=stylesheet href=\"");
      out.write(
          (java.lang.String)
              org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                  "${pageContext.request.contextPath}",
                  java.lang.String.class,
                  (javax.servlet.jsp.PageContext) _jspx_page_context,
                  null,
                  false));
      out.write("/css/base/");
      out.write(
          (java.lang.String)
              org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                  "${currentSkin}",
                  java.lang.String.class,
                  (javax.servlet.jsp.PageContext) _jspx_page_context,
                  null,
                  false));
      out.write("/base.css?");
      out.write(
          (java.lang.String)
              org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                  "${currentTimestamp}",
                  java.lang.String.class,
                  (javax.servlet.jsp.PageContext) _jspx_page_context,
                  null,
                  false));
      out.write('"');
      out.write('/');
      out.write('>');
      out.write("\r\n");
      out.write("<script src=\"");
      out.write(
          (java.lang.String)
              org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                  "${pageContext.request.contextPath}",
                  java.lang.String.class,
                  (javax.servlet.jsp.PageContext) _jspx_page_context,
                  null,
                  false));
      out.write("/js/miniui/miniui.js?");
      out.write(
          (java.lang.String)
              org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                  "${currentTimestamp}",
                  java.lang.String.class,
                  (javax.servlet.jsp.PageContext) _jspx_page_context,
                  null,
                  false));
      out.write("\" type=\"text/javascript\"></script>\r\n");
      out.write("<script src=\"");
      out.write(
          (java.lang.String)
              org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                  "${pageContext.request.contextPath}",
                  java.lang.String.class,
                  (javax.servlet.jsp.PageContext) _jspx_page_context,
                  null,
                  false));
      out.write("/js/miniui/locale/");
      out.write(
          (java.lang.String)
              org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                  "${currentLocale}",
                  java.lang.String.class,
                  (javax.servlet.jsp.PageContext) _jspx_page_context,
                  null,
                  false));
      out.write(".js?");
      out.write(
          (java.lang.String)
              org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                  "${currentTimestamp}",
                  java.lang.String.class,
                  (javax.servlet.jsp.PageContext) _jspx_page_context,
                  null,
                  false));
      out.write("\" type=\"text/javascript\"></script>\r\n");
      out.write("<script type=\"text/javascript\" src=\"");
      out.write(
          (java.lang.String)
              org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                  "${pageContext.request.contextPath}",
                  java.lang.String.class,
                  (javax.servlet.jsp.PageContext) _jspx_page_context,
                  null,
                  false));
      out.write("/js/comm/miniui_ext.js\"></script>\r\n");
      out.write("<script type=\"text/javascript\" src=\"");
      out.write(
          (java.lang.String)
              org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                  "${pageContext.request.contextPath}",
                  java.lang.String.class,
                  (javax.servlet.jsp.PageContext) _jspx_page_context,
                  null,
                  false));
      out.write("/js/comm/miniuiExtButtons.js\"></script>\r\n");
      out.write("<script type=\"text/javascript\" src=\"");
      out.write(
          (java.lang.String)
              org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                  "${pageContext.request.contextPath}",
                  java.lang.String.class,
                  (javax.servlet.jsp.PageContext) _jspx_page_context,
                  null,
                  false));
      out.write("/js/comm/DataUtil.js\"></script>\r\n");
      out.write("\r\n");
      out.write("<link rel=stylesheet href=\"");
      out.write(
          (java.lang.String)
              org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                  "${pageContext.request.contextPath}",
                  java.lang.String.class,
                  (javax.servlet.jsp.PageContext) _jspx_page_context,
                  null,
                  false));
      out.write("/css/miniui/default/miniui.css?");
      out.write(
          (java.lang.String)
              org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                  "${currentTimestamp}",
                  java.lang.String.class,
                  (javax.servlet.jsp.PageContext) _jspx_page_context,
                  null,
                  false));
      out.write("\"/>\r\n");
      out.write("<link rel=stylesheet href=\"");
      out.write(
          (java.lang.String)
              org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                  "${pageContext.request.contextPath}",
                  java.lang.String.class,
                  (javax.servlet.jsp.PageContext) _jspx_page_context,
                  null,
                  false));
      out.write("/css/miniui/icons.css?");
      out.write(
          (java.lang.String)
              org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                  "${currentTimestamp}",
                  java.lang.String.class,
                  (javax.servlet.jsp.PageContext) _jspx_page_context,
                  null,
                  false));
      out.write("\"/>\r\n");
      out.write("<link rel=stylesheet href=\"");
      out.write(
          (java.lang.String)
              org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                  "${pageContext.request.contextPath}",
                  java.lang.String.class,
                  (javax.servlet.jsp.PageContext) _jspx_page_context,
                  null,
                  false));
      out.write("/css/miniui/");
      out.write(
          (java.lang.String)
              org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                  "${currentSkin}",
                  java.lang.String.class,
                  (javax.servlet.jsp.PageContext) _jspx_page_context,
                  null,
                  false));
      out.write("/skin.css?");
      out.write(
          (java.lang.String)
              org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                  "${currentTimestamp}",
                  java.lang.String.class,
                  (javax.servlet.jsp.PageContext) _jspx_page_context,
                  null,
                  false));
      out.write("\"/>\r\n");
      out.write("<link rel=stylesheet href=\"");
      out.write(
          (java.lang.String)
              org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                  "${pageContext.request.contextPath}",
                  java.lang.String.class,
                  (javax.servlet.jsp.PageContext) _jspx_page_context,
                  null,
                  false));
      out.write("/css/comm/miniui_ext.css\"/>\r\n");
      out.write("\r\n");
      out.write("<script type=\"text/javascript\" src=\"");
      out.write(
          (java.lang.String)
              org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                  "${pageContext.request.contextPath}",
                  java.lang.String.class,
                  (javax.servlet.jsp.PageContext) _jspx_page_context,
                  null,
                  false));
      out.write("/js/tracywindy/tracywindyJsonUtil.js\"></script>\r\n");
      out.write("<script type=\"text/javascript\">\r\n");
      out.write("\tfunction getRootPath() {\r\n");
      out.write("\t\tvar strFullPath = window.document.location.href;\r\n");
      out.write("\t\tvar strPath = window.document.location.pathname;\r\n");
      out.write("\t\tvar pos = strFullPath.indexOf(strPath);\r\n");
      out.write("\t\tvar prePath = strFullPath.substring(0, pos);\r\n");
      out.write("\t\tvar postPath = strPath.substring(0, strPath.substr(1).indexOf('/') + 1);\r\n");
      out.write("\t\treturn (prePath + postPath);\r\n");
      out.write("\t}\r\n");
      out.write("\tfunction miniextonbeforeshowpopup(e) {\r\n");
      out.write("\t\tminiui_ext.onbeforeshowpopup(e);\r\n");
      out.write("\t}\r\n");
      out.write("\tfunction miniextonDateRenderer(e){\r\n");
      out.write("\t\treturn miniui_ext.onDateRenderer(e);\r\n");
      out.write("\t}\r\n");
      out.write("\tfunction toggleFieldSet(ck, id) {\r\n");
      out.write("        var dom = document.getElementById(id);\r\n");
      out.write("        dom.className = !ck.checked ? \"hideFieldset\" : \"\";\r\n");
      out.write("        var _fit = mini.get(\"_fit\");\r\n");
      out.write("        _fit.setHeight(window.document.body.clientHeight);\r\n");
      out.write("    }\r\n");
      out.write("\tfunction CloseWindow(action) {            \r\n");
      out.write("\t\tif (action == \"close\" && grid.isChanged()) {\r\n");
      out.write("\t        if (confirm(\"数据被修改了,是否先保存?\")) {\r\n");
      out.write("\t            return false;\r\n");
      out.write("\t        }\r\n");
      out.write("\t    }\r\n");
      out.write("\t    if (window.CloseOwnerWindow) return window.CloseOwnerWindow(action);\r\n");
      out.write("\t    else window.close();           \r\n");
      out.write("\t}\r\n");
      out.write("\tfunction onCancel(e) {\r\n");
      out.write("\t    CloseWindow(\"cancel\");\r\n");
      out.write("\t}\r\n");
      out.write("\tfunction onCloseClick(e) {\r\n");
      out.write("\t    var obj = e.sender;\r\n");
      out.write("\t    obj.setText(\"\");\r\n");
      out.write("\t    obj.setValue(\"\");\r\n");
      out.write("\t}\r\n");
      out.write("\tfunction isEnglish(){\r\n");
      out.write("\t\t if(\"");
      out.write(
          (java.lang.String)
              org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                  "${sessionScope['login_userlanguage'].language}",
                  java.lang.String.class,
                  (javax.servlet.jsp.PageContext) _jspx_page_context,
                  null,
                  false));
      out.write("\" == 'en'){\r\n");
      out.write("\t\t\t \treturn true;\r\n");
      out.write("         }\r\n");
      out.write("\t\treturn false;\r\n");
      out.write("\t}\r\n");
      out.write("\t\r\n");
      out.write("\t//设置千分位之后的值\r\n");
      out.write("\tfunction setformatvalue(m){\r\n");
      out.write("\t\tvar pMoneyOri = m.getInputText().trim();\r\n");
      out.write("\t\tvar pMoney = pMoneyOri.replace(/,/gi,\"\");\r\n");
      out.write("\t\tvar pMoneyReg = /^[-\\+]?\\d+[\\.]?([0-9]{1,2})?$/;\r\n");
      out.write("\t\tvar flag = true;\r\n");
      out.write("\t\tif(m.vtype == 'rate'){\r\n");
      out.write("\t\t\t pMoneyReg = /^[-\\+]?\\d+[\\.]?([0-9]{1,6})?$/;\r\n");
      out.write("\t\t\t flag = false;\r\n");
      out.write("\t\t}else if(m.vtype == 'int'){\r\n");
      out.write("\t\t\t pMoneyReg = /^[-\\+]?\\d+$/;\r\n");
      out.write("\t\t\t flag = false;\r\n");
      out.write("\t\t}\r\n");
      out.write("\t\t\r\n");
      out.write("\t\tif(pMoneyOri && !pMoneyReg.test(pMoney)){\r\n");
      out.write("\t\t\tpMoney = 0;\r\n");
      out.write("\t\t\tm.setValue();\r\n");
      out.write("\t\t\tm.setValue('0');\r\n");
      out.write("\t\t}else{\r\n");
      out.write("\t\t\t//把非数字的字符格式化成空格、并千分位\r\n");
      out.write("\t\t\tif(flag){\r\n");
      out.write("\t\t\t\tm.setValue(formatNumberThousand(pMoney));\r\n");
      out.write("\t\t\t}\r\n");
      out.write("\t\t}\r\n");
      out.write("\t}\r\n");
      out.write("\t//设置千分位\r\n");
      out.write("\tfunction setapcolumnformatvalue(m){\r\n");
      out.write("\t\tvar obj = m.sender;\r\n");
      out.write("\t\tvar pMoneyOri = obj.getInputText().trim();\r\n");
      out.write("\t\tvar pMoney = pMoneyOri.replace(/,/gi,\"\");\r\n");
      out.write("\t\tif(!pMoney){pMoney = 0};\r\n");
      out.write("\t\tvar pMoneyReg = /^[-\\+]?\\d+[\\.]?([0-9]{1,2})?$/;\r\n");
      out.write("\t\tif(obj.vtype == 'rate'){\r\n");
      out.write("\t\t\tvar pMoneyReg = /^[-\\+]?\\d+[\\.]?([0-9]{1,6})?$/;\r\n");
      out.write("\t\t}\r\n");
      out.write("\t\tif((pMoney && pMoney.length>=0) && !pMoneyReg.test(pMoney)){\r\n");
      out.write("\t\t\tpMoney = 0;\r\n");
      out.write("\t\t\tobj.setValue();\r\n");
      out.write("\t\t\tobj.setValue('0');\r\n");
      out.write("\t\t}else{\r\n");
      out.write("\t\t\tobj.setValue();\r\n");
      out.write("\t\t\tobj.setValue(formatNumberThousand(pMoney));\r\n");
      out.write("\t\t}\r\n");
      out.write("\t}\r\n");
      out.write("\t//格式化数字为千分位\r\n");
      out.write("\tfunction formatNumberThousand(s) {  \r\n");
      out.write("\t\t   s += \"\";\r\n");
      out.write("\t\t   s = s.replace(/,/g,\"\");\r\n");
      out.write("\t\t  \r\n");
      out.write("\t\t   if(isNaN(s)){\r\n");
      out.write("\t\t\t   return s;\r\n");
      out.write("\t\t   }\r\n");
      out.write("\t\t   //if(s==0){s=\"0.00\";}\r\n");
      out.write("\t\t   s += \"\";\r\n");
      out.write("\t\t   //s = s.replace(/,/g,\"\");\r\n");
      out.write("\t\t   var re=/(\\d{1,3})(?=(\\d{3})+(?:$|\\D))/g; //\r\n");
      out.write("\t\t   var n1=s.replace(re,\"$1,\");\r\n");
      out.write("\t\t   return n1;\r\n");
      out.write("\t}\r\n");
      out.write("\t\r\n");
      out.write("</script>");
      out.write("\r\n");
      out.write("<script type=\"text/javascript\" src=\"");
      out.write(
          (java.lang.String)
              org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                  "${pageContext.request.contextPath}",
                  java.lang.String.class,
                  (javax.servlet.jsp.PageContext) _jspx_page_context,
                  null,
                  false));
      out.write("/js/tracywindy/workFlowUtil.js\"></script>\r\n");
      out.write("<script type=\"text/javascript\" src=\"");
      out.write(
          (java.lang.String)
              org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                  "${pageContext.request.contextPath}",
                  java.lang.String.class,
                  (javax.servlet.jsp.PageContext) _jspx_page_context,
                  null,
                  false));
      out.write("/js/tracywindy/tracywindyUtils.js\"></script>\r\n");
      out.write("<script type=\"text/javascript\">\r\n");
      out.write("jQuery(function() {\r\n");
      out.write("\t\tseajs.use([ \"js/apcomponent/aptable/aptable.js\" ], function(ApTable) {\r\n");
      out.write("\t\t\tnew ApTable({\r\n");
      out.write("\t\t\t\tid : 'table_id1',\r\n");
      out.write("\t\t\t\twidth : globalClientWidth,\r\n");
      out.write("\t\t\t\theight : globalClientHeight,\r\n");
      out.write("\t\t\t\ttitle : '短信设置',\r\n");
      out.write("\t\t\t\ticonCls : 'icon-node',\r\n");
      out.write("\t\t\t\tmultiSelect : true,\r\n");
      out.write("\t\t\t\thiddenQueryArea : true,//是否将查询区域折叠起来\r\n");
      out.write("\t\t\t\tqueryButtonColSpan : 2,\r\n");
      out.write("\t\t\t\tqueryButtonNewLine:false,\r\n");
      out.write("\t\t\t\tremoteOper:true,\r\n");
      out.write("\t\t\t\tentityClassName:'com.tenwa.business.entity.message.MessageConfig',\r\n");
      out.write("\t\t\t\tshowPager:true,\r\n");
      out.write("\t\t\t\txmlFileName : '/interface/queryMessageConfig.xml',\r\n");
      out.write("\t\t\t\ttools : ['add', '-', 'edit'],\r\n");
      out.write("\t\t\t\tcolumns : [ \r\n");
      out.write("\t\t\t\t    {type : 'indexcolumn'},\r\n");
      out.write("\t\t\t\t\t{type : 'checkcolumn'},  \r\n");
      out.write("\t\t\t\t\t{header:'记录编号',field:'id',visible : false},\r\n");
      out.write("\t\t            {header:'短信服务器主机',field:'host',\r\n");
      out.write("\t\t\t\t\t\tformEditorConfig:{\r\n");
      out.write("\t\t\t\t\t\t\twidth:200,\r\n");
      out.write("\t\t\t\t\t\t\tlabelWidth:300,\r\n");
      out.write("\t\t            \t\trequired : true\r\n");
      out.write("\t\t\t\t\t\t}\r\n");
      out.write("\t\t            },\r\n");
      out.write("\t\t            {header:'短信服务器端口',field:'port',\r\n");
      out.write("\t\t\t\t\t\tformEditorConfig:{\r\n");
      out.write("\t\t\t\t\t\t\twidth:200,\r\n");
      out.write("\t\t\t\t\t\t\tlabelWidth:300,\r\n");
      out.write("\t\t            \t\trequired : true\r\n");
      out.write("\t\t\t\t\t\t}\r\n");
      out.write("\t\t            },\r\n");
      out.write("\t\t            {header:'短信发送者',field:'sender',\r\n");
      out.write("\t\t            \tformEditorConfig:{\r\n");
      out.write("\t\t            \t\twidth:200,\r\n");
      out.write("\t\t            \t\trequired : true,//是否必填\r\n");
      out.write("\t\t\t\t\t\t\tnewLine: true\r\n");
      out.write("\t\t\t\t\t\t}\r\n");
      out.write("\t\t            },\r\n");
      out.write("\t\t            {header:'短信发送者密码',field:'senderpassword',\r\n");
      out.write("\t\t\t\t\t\tformEditorConfig:{\r\n");
      out.write("\t\t\t\t\t\t\twidth:200,\r\n");
      out.write("\t\t            \t\trequired : true\r\n");
      out.write("\t\t\t\t\t\t}\r\n");
      out.write("\t\t            },\r\n");
      out.write("\t\t            {header:'短信发送的URL',field:'sendmessageurl',\r\n");
      out.write("\t\t            \tformEditorConfig:{\r\n");
      out.write("\t\t            \t\twidth:200,\r\n");
      out.write("\t\t            \t\trequired : true,//是否必填\r\n");
      out.write("\t\t\t\t\t\t\tnewLine: true\r\n");
      out.write("\t\t\t\t\t\t}\r\n");
      out.write("\t\t            },\r\n");
      out.write("\t\t            {header:'短信发送时参数信息',field:'sendparamsurl',\r\n");
      out.write("\t\t\t\t\t\tformEditorConfig:{\r\n");
      out.write("\t\t\t\t\t\t\twidth:200,\r\n");
      out.write("\t\t            \t\trequired : true\r\n");
      out.write("\t\t\t\t\t\t}\r\n");
      out.write("\t\t            },\r\n");
      out.write("\t\t            {header:'短信子码',field:'subcode',\r\n");
      out.write("\t\t\t\t\t\tformEditorConfig:{\r\n");
      out.write("\t\t\t\t\t\t\twidth:200,\r\n");
      out.write("\t\t\t\t\t\t\tnewLine: true,\r\n");
      out.write("\t\t            \t\trequired : true\r\n");
      out.write("\t\t\t\t\t\t}\r\n");
      out.write("\t\t            }\r\n");
      out.write("\t\t\t\t\t\t\r\n");
      out.write("\t\t\t\t]\r\n");
      out.write("\t\t\t});\r\n");
      out.write("\t\t});\r\n");
      out.write("\t});\r\n");
      out.write("</script>\r\n");
      out.write("</head>\r\n");
      out.write("<body></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);
      }
    } finally {
      _jspxFactory.releasePageContext(_jspx_page_context);
    }
  }
Ejemplo n.º 22
0
  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");
      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');
      out.write('\n');
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      com.konakart.al.KKAppEng kkEng =
          (com.konakart.al.KKAppEng) session.getAttribute("konakartKey");
      out.write("\r\n");
      out.write("\r\n");
      out.write(" \t\t\t\t<h1 id=\"page-title\">");
      if (_jspx_meth_kk_005fmsg_005f0(_jspx_page_context)) return;
      out.write("</h1>\t\t\t\r\n");
      out.write("\t    \t\t<div class=\"content-area rounded-corners\">\r\n");
      out.write("\t\t    \t\t<div id=\"about-us\">\r\n");
      out.write("\t\t    \t\t\t");
      if (_jspx_meth_kk_005fmsg_005f1(_jspx_page_context)) return;
      out.write("\r\n");
      out.write("\t\t\t\t\t\t<div class=\"form-buttons-wide\">\r\n");
      out.write(
          "\t\t\t\t\t\t\t<a href=\"Welcome.action\" id=\"continue-button\" class=\"button small-rounded-corners\"><span>");
      if (_jspx_meth_kk_005fmsg_005f2(_jspx_page_context)) return;
      out.write("</span></a>\r\n");
      out.write("\t\t\t\t\t\t</div>\r\n");
      out.write("\t\t\t    \t</div>\r\n");
      out.write("\t    \t\t</div>\r\n");
      out.write("\r\n");
      out.write("\r\n");
    } 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);
      }
    } finally {
      _jspxFactory.releasePageContext(_jspx_page_context);
    }
  }
Ejemplo n.º 23
0
  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      &middot;\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("&nbsp;");
        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(" &middot; ");
        out.write("<a target=\"_blank\" href=\"/log.txt\">");
        out.write("Logs");
        out.write("</a>");

        if (generationState.isRunning()) {

          out.write("\n      &middot;\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("&nbsp;");
        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("&nbsp;");
          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("&nbsp;");
          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("&copy; 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);
    }
  }
Ejemplo n.º 24
0
  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("\r\n");
      out.write("\r\n");
      out.write("<!-- 插入样式和JS -->\r\n");
      org.apache.jasper.runtime.JspRuntimeLibrary.include(
          request, response, "../proj_approval/base.jsp", out, false);
      out.write('\r');
      out.write('\n');
      org.apache.jasper.runtime.JspRuntimeLibrary.include(
          request, response, "../../util/flow_condition_select.jsp", out, false);
      out.write("\r\n");
      out.write("<!-- 特殊附件显示公用方法 -->\r\n");
      org.apache.jasper.runtime.JspRuntimeLibrary.include(
          request, response, "../../util/proj_view_file.jsp", out, false);
      out.write("\r\n");
      out.write("<!-- 项目立项附件带到租前业务相关流程 -->\r\n");
      org.apache.jasper.runtime.JspRuntimeLibrary.include(
          request, response, "initFileListParams.jsp", out, false);
      out.write("\r\n");
      out.write("<!-- 项目信审申请 -->\r\n");
      out.write("<script type=\"text/javascript\">\r\n");
      out.write("//页面初始化\r\n");
      out.write("var isSubTable=false;\r\n");
      out.write("//全局变量说是这一个只读业页\r\n");
      out.write("isViewHistoryTask = true;\r\n");
      out.write("//是否保存   \r\n");
      out.write("function workflowSaveCallBack()//返回true提交,返回false不提交 ,该回调函数可与用表单字段验证\r\n");
      out.write("{\r\n");
      out.write("\tfillHiddenVal();\r\n");
      out.write("\treturn true;\r\n");
      out.write("}\r\n");
      out.write("//是否提交    \r\n");
      out.write(
          "function workflowSubmitCallBack(buttonText)//返回true提交,返回false不提交 ,该回调函数可与用表单字段验证\r\n");
      out.write("{\r\n");
      out.write("\tfillHiddenVal();\r\n");
      out.write(
          "\tvar submitProcessedForm = document.getElementById(\"id_submitProcessedForm\");\r\n");
      out.write("\t//var isPassed = Validator.Validate(submitProcessedForm,1,false);\r\n");
      out.write("\t//if(!isPassed){return isPassed;}\r\n");
      out.write("\t/*if(buttonText==\"Submit\"){\r\n");
      out.write(
          "    \tvar condtion=\"[{condtion:'正常审批',rote:'10台以上资料审核'},{condtion:'直接审批',rote:'10台以上资料齐全'}]\";\r\n");
      out.write("\t\tif(!isSelectRote){\r\n");
      out.write("        \tselectRoteByCondtion(condtion);\r\n");
      out.write("        \treturn false;\r\n");
      out.write("        }else{\r\n");
      out.write("        \treturn isPassed;\r\n");
      out.write("        }\r\n");
      out.write("    }\r\n");
      out.write("\tisSelectRote=false;*/\r\n");
      out.write("\treturn true;\r\n");
      out.write("}\r\n");
      out.write("var isSelectRote=false; \r\n");
      out.write("var selectRote=\"\"; \r\n");
      out.write("\r\n");
      out.write("function workflowNextRouteCallBack(buttonText,requestNextRoute){\r\n");
      out.write("    if(buttonText==\"Submit\"){\r\n");
      out.write("   \t\trequestNextRoute.value=\"04信审部经理审核\";\r\n");
      out.write("   \t\t//isSelectRote=false;\r\n");
      out.write("    }\r\n");
      out.write("}\r\n");
      out.write("</script>\r\n");
      out.write("<!--多行控件  -->\r\n");
      out.write(
          "<input type=\"hidden\" id=\"id_json_proj_equip_str\" name=\"json_proj_equip_str\" value='");
      out.write(
          (java.lang.String)
              org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                  "${empty json_proj_equip_str ? \"[]\" : json_proj_equip_str }",
                  java.lang.String.class,
                  (javax.servlet.jsp.PageContext) _jspx_page_context,
                  null,
                  false));
      out.write("'></input>\r\n");
      out.write(
          "<input type=\"hidden\" id=\"id_json_proj_guarantee_method_str\" \tname=\"json_proj_guarantee_method_str\" value='");
      out.write(
          (java.lang.String)
              org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                  "${empty json_proj_guarantee_method_str ? \"[]\" : json_proj_guarantee_method_str }",
                  java.lang.String.class,
                  (javax.servlet.jsp.PageContext) _jspx_page_context,
                  null,
                  false));
      out.write("'></input>\r\n");
      out.write(
          "<input type=\"hidden\" id=\"id_json_proj_guarantee_equip_str\" name=\"json_proj_guarantee_equip_str\" value='");
      out.write(
          (java.lang.String)
              org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                  "${empty json_proj_guarantee_equip_str ? \"[]\" : json_proj_guarantee_equip_str }",
                  java.lang.String.class,
                  (javax.servlet.jsp.PageContext) _jspx_page_context,
                  null,
                  false));
      out.write("'></input>\r\n");
      out.write(
          "<input type=\"hidden\" id=\"id_json_word_list_str\" name=\"json_word_list_str\" value='");
      out.write(
          (java.lang.String)
              org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                  "${empty json_word_list_str ? \"[]\" : json_word_list_str }",
                  java.lang.String.class,
                  (javax.servlet.jsp.PageContext) _jspx_page_context,
                  null,
                  false));
      out.write("'></input>\r\n");
      out.write("<div class=\"fillTableContainer\">\r\n");
      out.write("   <table class=\"fillTable\" cellspacing=\"0\" cellpadding=\"0\">\r\n");
      out.write("\r\n");
      out.write("\t<tr>\r\n");
      out.write("\t\t<td colspan=4><!-- 插入项目基本信息 --> ");
      org.apache.jasper.runtime.JspRuntimeLibrary.include(
          request, response, "../proj_approval/proj_base_info_forcredit.jsp", out, false);
      out.write("</td>\r\n");
      out.write("\t</tr>\r\n");
      out.write("\t<tr>\r\n");
      out.write("\t\t<td colspan=4><!-- 插入项目其它基本信息 --> ");
      org.apache.jasper.runtime.JspRuntimeLibrary.include(
          request, response, "proj_base_other_info.jsp", out, false);
      out.write("</td>\r\n");
      out.write("\t</tr>\r\n");
      out.write("\t<tr>\r\n");
      out.write("\t\t<td colspan=4><!-- 插入项目信审其它基本信息 --> ");
      org.apache.jasper.runtime.JspRuntimeLibrary.include(
          request, response, "proj_credit_other_info.jsp", out, false);
      out.write("</td>\r\n");
      out.write("\t</tr>\r\n");
      out.write("\t\r\n");
      out.write("\t<tr>\r\n");
      out.write("       <td colspan=4>\r\n");
      out.write("       <script type=\"text/javascript\">\r\n");
      out.write("\t\t\t\t\t    jQuery(function() {\r\n");
      out.write("\t\t\t\t\t\t    isViewHistoryTask = false;\r\n");
      out.write("\t\t\t\t\t\t    });\r\n");
      out.write("\t\t            </script>\r\n");
      out.write("                    ");
      if (_jspx_meth_c_005fif_005f0(_jspx_page_context)) return;
      out.write("\r\n");
      out.write("       <script type=\"text/javascript\">\r\n");
      out.write("\t\t\t\t\t    jQuery(function() {\r\n");
      out.write("\t\t\t\t\t\t    //isViewHistoryTask = true;\r\n");
      out.write("\t\t\t\t\t\t    });\r\n");
      out.write("\t\t            </script>\r\n");
      out.write("       </td>\r\n");
      out.write("    </tr>\r\n");
      out.write("\t\r\n");
      out.write("\t<tr>\r\n");
      out.write("\t\t<td colspan=4><!-- 插入项目评审结果 -->\r\n");
      out.write(
          "\t\t\t<script language=\"javascript\">jQuery(function() {isViewHistoryTask = false;});</script> \r\n");
      out.write("\t\t\t ");
      org.apache.jasper.runtime.JspRuntimeLibrary.include(
          request, response, "proj_credit_result_info.jsp", out, false);
      out.write("\r\n");
      out.write(
          "\t\t\t<script language=\"javascript\">jQuery(function() {isViewHistoryTask = true;});</script>\r\n");
      out.write("        </td>\r\n");
      out.write("\t</tr>\r\n");
      out.write("\t<tr>\r\n");
      out.write("\t\t<td colspan=4 class=\"td-even-line-separator\">&nbsp;</td>\r\n");
      out.write("\t</tr>\r\n");
      out.write("\t<tr class=\"x-panel-table-div-title\">\r\n");
      out.write("\t\t<td class=\"x-panel-table-div-title\" colspan=4>\r\n");
      out.write(
          "\t\t\t<div class=\"toggle-icon-expanded\" title=\"折叠\" toggleClass=\"tr-project-business-condition\"></div>\r\n");
      out.write("\t\t\t项目商务条件\r\n");
      out.write("\t\t</td>\r\n");
      out.write("\t</tr>\r\n");
      out.write("\t<tr>\r\n");
      out.write("\t\t<td colspan=4></td>\r\n");
      out.write("\t</tr>\r\n");
      out.write("\t<tr class=\"tr-project-business-condition\">\r\n");
      out.write("\t\t<td colspan=4 class=\"td-tabs-container\" style=\"text-indent: 0px;\">\r\n");
      out.write("\t\t<!-- 标签栏 -->\r\n");
      out.write("\t\t<div id='id_project_info_tabs_content' style=\"\">\r\n");
      out.write("\t\t<div title=\"租赁物明细\">\r\n");
      out.write("\t\t<div id=\"id_table_leasing_proj_equip_container\"\r\n");
      out.write("\t\t\tstyle=\"overflow: hidden;\"></div>\r\n");
      out.write("\t\t</div>\r\n");
      out.write("\t\t<div title=\"拟商务条件\">\r\n");
      out.write("\t\t<div id=\"id_table_leasing_proj_condition_container\"\r\n");
      out.write("\t\t\tstyle=\"overflow: hidden;\">\r\n");
      out.write("\t\t\t");
      org.apache.jasper.runtime.JspRuntimeLibrary.include(
          request, response, "../../rent_reckon/rent_reckon/main.jsp", out, false);
      out.write("</div>\r\n");
      out.write("\t\t</div>\r\n");
      out.write("\t\t<div title=\"担保单位信息\">\r\n");
      out.write("\t\t<div id=\"id_table_leasing_proj_guarantee_method_container\"\r\n");
      out.write("\t\t\tstyle=\"overflow: hidden;\"></div>\r\n");
      out.write("\t\t</div>\r\n");
      out.write("\t\t<div title=\"租金发票类型\">\r\n");
      out.write("\t\t<div id=\"id_table_leasing_proj_rent_type_container\"\r\n");
      out.write("\t\t\tstyle=\"height: 350px;\">");
      org.apache.jasper.runtime.JspRuntimeLibrary.include(
          request, response, "../proj_approval/proj_invoice.jsp", out, false);
      out.write("\r\n");
      out.write("\t\t</div>\r\n");
      out.write("\t\t</div>\r\n");
      out.write("\t\t<div title=\"客户信用评分表\">\r\n");
      out.write(
          "\t\t\t<div id=\"id_table_leasing_proj_cust_creidt_container\" style=\"overflow: hidden;\">\r\n");
      out.write("\t\t\t");
      org.apache.jasper.runtime.JspRuntimeLibrary.include(
          request, response, "proj_cust_credit_list.jsp", out, false);
      out.write("\r\n");
      out.write("\t\t\t</div>\r\n");
      out.write("\t\t</div>\r\n");
      out.write("\t\t");
      if (_jspx_meth_c_005fif_005f1(_jspx_page_context)) return;
      out.write("\r\n");
      out.write("\t</div>\r\n");
      out.write("\t\t</td>\r\n");
      out.write("\t</tr>\r\n");
      out.write("</table>\r\n");
      out.write("</div>\r\n");
      out.write("<!--避免在tabs中的js重复执行-->\r\n");
      org.apache.jasper.runtime.JspRuntimeLibrary.include(
          request, response, "../proj_approval/proj_equip_detail.jsp", out, false);
      out.write('\r');
      out.write('\n');
      org.apache.jasper.runtime.JspRuntimeLibrary.include(
          request, response, "../proj_approval/proj_guarantee_method.jsp", out, false);
      out.write('\r');
      out.write('\n');
      org.apache.jasper.runtime.JspRuntimeLibrary.include(
          request, response, "proj_cust_credit.jsp", out, false);
      out.write("\r\n");
      out.write("<script>\r\n");
      out.write("function createTemFileCredit6()\r\n");
      out.write("{\r\n");
      out.write("\tvar currentTablelist = getTracywindyObject('table_projcreditreport');\r\n");
      out.write("\tvar tabledata11=currentTablelist.getRowsData();\r\n");
      out.write("\tfor(var i=0;i<tabledata11.length;i++){\r\n");
      out.write("\t\t\tif(tabledata11[i].filename=='法人客户信审报告(6-10台).xls')\r\n");
      out.write("\t\t\t\t{\r\n");
      out.write("\t\t\t\t  alert(tabledata11[i].filename+\"已经生成\");\r\n");
      out.write("\t\t\t\t  return false;\r\n");
      out.write("\t\t\t\t}\r\n");
      out.write("\t}\r\n");
      out.write("    //alert(jQuery(\"#cust_name\").val());\r\n");
      out.write("    //平均租金\r\n");
      out.write(
          "    var currentTable2 = getTracywindyObject('table_id_table_leasing_rent_plan_container');\r\n");
      out.write("\t\tvar tabledata2=currentTable2.getRowsData();\r\n");
      out.write("\t\tvar sumMoney=null;\r\n");
      out.write("\t\tfor(var j=0;j<tabledata2.length;j++)\r\n");
      out.write("\t\t{\r\n");
      out.write("       sumMoney=sumMoney+parseFloat(tabledata2[j].rent);\r\n");
      out.write("\t \t}\r\n");
      out.write("\t \tsumMoney=sumMoney/parseInt(tabledata2.length);\r\n");
      out.write("\t \t//alert(sumMoney);\r\n");
      out.write(
          "\t \t//alert(\"按\"+jQuery(\"#firstPaymentRatio\").val()+\"%首付\"+jQuery(\"#cautionMoney\").val()+\"%保证金,\"+jQuery(\"#yearRate\").val()+\"%年利率,\"+jQuery(\"#leaseTerm\").val()+\"个月租赁期,融资额为\"+jQuery(\"#leaseMoney\").val()+\"元,每月还款租金  \"+sumMoney);\r\n");
      out.write("\t \t        \r\n");
      out.write(
          "\t \tvar data=\"按\"+jQuery(\"#firstPaymentRatio\").val()+\"%首付,\"+jQuery(\"#cautionMoneyRatio\").val()+\"%保证金,\"+jQuery(\"#yearRate\").val()+\"%年利率,\"+jQuery(\"#leaseTerm\").val()+\"个月租赁期,融资额为\"+jQuery(\"#leaseMoney\").val()+\"元,每月还款租金  \"+sumMoney+\"元\";\r\n");
      out.write("    //担保人\r\n");
      out.write(
          "\tvar currentTable1 = getTracywindyObject('table_id_table_leasing_proj_guarantee_method_container');\r\n");
      out.write("\t\tvar tabledata=currentTable1.getRowsData();\r\n");
      out.write("\t\tvar assurorname=\"('\";\r\n");
      out.write("\t\tfor(var i=0;i<tabledata.length;i++){\r\n");
      out.write("\t\tassurorname+=tabledata[i].assurorname;\r\n");
      out.write("\t\t  if(i<tabledata.length-1)\r\n");
      out.write("\t\t  {\r\n");
      out.write("\t\t\tassurorname+=\"','\";\r\n");
      out.write("\t\t   }\r\n");
      out.write("\t\t}\r\n");
      out.write("\t\tassurorname+=\"')\";\r\n");
      out.write("\t\t//alert(assurorname);\r\n");
      out.write("\t\tvar test=getTracywindyObject(\"id_combo_creatordept\").getRawValue();\r\n");
      out.write("\t\tvar filename='table_projcreditreport';\r\n");
      out.write("\tvar url=\"/leasing/template/createFileByTemplateClass.action\";\r\n");
      out.write(
          "    attachmentDown({uploadid:filename,url:url,title:\"\",flowunid:flowUnid,twoClassify:'wordtempletypetwo.33',returnType:'listtocurpaget',modelname:'creditreport',assurorname:assurorname,lesseesname:jQuery(\"#cust_name\").val(),projectid:jQuery(\"#project_id\").val(),\"framework_condition.money\":sumMoney,\"condition.array\":data,dealername:test});\r\n");
      out.write("}\r\n");
      out.write("function createTemFileCredit()\r\n");
      out.write("{\r\n");
      out.write("\tvar currentTablelist = getTracywindyObject('table_projcreditreport');\r\n");
      out.write("\tvar tabledata11=currentTablelist.getRowsData();\r\n");
      out.write("\tfor(var i=0;i<tabledata11.length;i++){\r\n");
      out.write("\t\t\tif(tabledata11[i].filename=='法人客户信审报告(10台以上).xls')\r\n");
      out.write("\t\t\t\t{\r\n");
      out.write("\t\t\t\t  alert(tabledata11[i].filename+\"已经生成\");\r\n");
      out.write("\t\t\t\t  return false;\r\n");
      out.write("\t\t\t\t}\r\n");
      out.write("\t}\r\n");
      out.write("    //平均租金\r\n");
      out.write(
          "    var currentTable2 = getTracywindyObject('table_id_table_leasing_rent_plan_container');\r\n");
      out.write("\t\tvar tabledata2=currentTable2.getRowsData();\r\n");
      out.write("\t\tvar sumMoney=null;\r\n");
      out.write("\t\tfor(var j=0;j<tabledata2.length;j++)\r\n");
      out.write("\t\t{\r\n");
      out.write("       sumMoney=sumMoney+parseFloat(tabledata2[j].rent);\r\n");
      out.write("\t \t}\r\n");
      out.write("\t \tsumMoney=sumMoney/parseInt(tabledata2.length);\r\n");
      out.write("\t \t//alert(sumMoney);\r\n");
      out.write("\t \t\r\n");
      out.write("    //担保人\r\n");
      out.write(
          "\tvar currentTable1 = getTracywindyObject('table_id_table_leasing_proj_guarantee_method_container');\r\n");
      out.write("\t\tvar tabledata=currentTable1.getRowsData();\r\n");
      out.write("\t\tvar assurorname=\"('\";\r\n");
      out.write("\t\tfor(var i=0;i<tabledata.length;i++){\r\n");
      out.write("\t\tassurorname+=tabledata[i].assurorname;\r\n");
      out.write("\t\t if(i<tabledata.length-1)\r\n");
      out.write("\t  {\r\n");
      out.write("\t\tassurorname+=\"','\";\r\n");
      out.write("\t   }\r\n");
      out.write("\t}\r\n");
      out.write("\tassurorname+=\"')\";\r\n");
      out.write("\t\tvar test=getTracywindyObject(\"id_combo_creatordept\").getRawValue();\r\n");
      out.write("\t\t//alert(test+\"2222\");\r\n");
      out.write("\t\t\r\n");
      out.write(
          "\t\t//alert(\"按\"+jQuery(\"#firstPaymentRatio\").val()+\"%首付\"+jQuery(\"#cautionMoney\").val()+\"%保证金,\"+jQuery(\"#yearRate\").val()+\"%年利率,\"+jQuery(\"#leaseTerm\").val()+\"个月租赁期,融资额为\"+jQuery(\"#leaseMoney\").val()+\"元,每月还款租金  \"+sumMoney);\r\n");
      out.write(
          "\t \tvar data=\"按\"+jQuery(\"#firstPaymentRatio\").val()+\"%首付,\"+jQuery(\"#cautionMoneyRatio\").val()+\"%保证金,\"+jQuery(\"#yearRate\").val()+\"%年利率,\"+jQuery(\"#leaseTerm\").val()+\"个月租赁期,融资额为\"+jQuery(\"#leaseMoney\").val()+\"元,每月还款租金  \"+sumMoney+\"元\";\r\n");
      out.write("\tvar url=\"/leasing/template/createFileByTemplateClass.action\";\r\n");
      out.write("\tvar filename='table_projcreditreport';\r\n");
      out.write(
          "    attachmentDown({uploadid:filename,url:url,title:\"\",flowunid:flowUnid,twoClassify:'wordtempletypetwo.34',returnType:'listtocurpaget',modelname:'creditreport',assurorname:assurorname,lesseesname:jQuery(\"#cust_name\").val(),projectid:jQuery(\"#project_id\").val(),\"framework_condition.money\":sumMoney,\"condition.array\":data,dealername:test});\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("//页面初始化\r\n");
      out.write("var isSubTable=true;\r\n");
      out.write("//法人附件上传权限\r\n");
      out.write("var isAttachment=false;\r\n");
      out.write("//隐藏域在提交或保存前的赋值\r\n");
      out.write("function fillHiddenVal() {\r\n");
      out.write("\tif(\"");
      out.write(
          (java.lang.String)
              org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                  "${requestScope['proj_info.cust_type']}",
                  java.lang.String.class,
                  (javax.servlet.jsp.PageContext) _jspx_page_context,
                  null,
                  false));
      out.write("\"=='法人')\r\n");
      out.write("\t{\r\n");
      out.write("\t    var currentTable3 = getTracywindyObject('table_projcreditreport');\r\n");
      out.write("\t    jQuery('#id_json_word_list_str').val(\r\n");
      out.write("\t\t\tJsonUtil.encode(currentTable3.getRowsJsonData()));\r\n");
      out.write("\t}\r\n");
      out.write("}\r\n");
      out.write("var tooldata=[{\r\n");
      out.write(" \t html : '<font color=\"blue\">生成法人客户信审报告(6-10台) </font>',\r\n");
      out.write("\t\thandler : function(table) {\r\n");
      out.write("\t     createTemFileCredit6();\r\n");
      out.write("\t\t\t\t//return false;\r\n");
      out.write("\t\t},\r\n");
      out.write("\t\ticonCls : 'icon-update'\r\n");
      out.write("},\r\n");
      out.write("{\r\n");
      out.write("\t html : '<font color=\"blue\">生成法人客户信审报告 (10台以上)</font>',\r\n");
      out.write("\t\thandler : function(table) {\r\n");
      out.write("\t\t    createTemFileCredit();\r\n");
      out.write("\t\t\t\t//return false;\r\n");
      out.write("\t\t},\r\n");
      out.write("\t\ticonCls : 'icon-update'\r\n");
      out.write("}\r\n");
      out.write("];\r\n");
      out.write("\r\n");
      out.write("/* var tooldata=[{\r\n");
      out.write("  \t html : '<font color=\"blue\">生成法人客户现场考察报告 </font>',\r\n");
      out.write("\t\thandler : function(table) {\r\n");
      out.write("\t\t\t\tcreateTemFile();\r\n");
      out.write("\t\t\t\t//return false;\r\n");
      out.write("\t\t},\r\n");
      out.write("\t\ticonCls : 'icon-update'\r\n");
      out.write("}]; */\r\n");
      out.write("\t//初始化调用\r\n");
      out.write("\tjQuery(function() {\r\n");
      out.write("\t\t//########公共JS事件##########\r\n");
      out.write("\t\tjQuery(\".toggle-icon-expanded\").click(toggleLeasingOperation);\r\n");
      out.write(
          "\t\t$(\"#id_project_info_tabs_content\").css(\"width\", (formWidth) + \"px\");\r\n");
      out.write("\t\t$(\"#id_project_info_tabs_content\").tabs();\r\n");
      out.write("\t\tisSubTable = false;\r\n");
      out.write("\t\tvar d = $(\"#id_project_info_tabs_content\");\r\n");
      out.write("\t\t$(\"#id_project_fund_rent_plan_tabs_content\").css(\"width\",\r\n");
      out.write("\t\t\t\t(formWidth) + \"px\");\r\n");
      out.write("\t\t$(\"#id_project_fund_rent_plan_tabs_content\").tabs();\r\n");
      out.write("\t\t//jQuery(\".fillTableContainer\").css(\"width\",formWidth+\"px\");\r\n");
      out.write("\t});\r\n");
      out.write("</script>\r\n");
    } 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);
      }
    } finally {
      _jspxFactory.releasePageContext(_jspx_page_context);
    }
  }
Ejemplo n.º 25
0
  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("\r\n");
      out.write("<!DOCTYPE html>\r\n");
      out.write("<html>\r\n");
      out.write("<head>\r\n");
      out.write("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=Shift_JIS\">\r\n");
      out.write("<title>検定管理システム</title>\r\n");
      out.write("<link href=\"");
      out.print(request.getContextPath());
      out.write("/view/css/style.css\" rel=\"stylesheet\" type=\"text/css\" />\r\n");
      out.write("<script src=\"");
      out.print(request.getContextPath());
      out.write("/view/js/jquery-1.11.3.min.js\"></script>\r\n");
      out.write("<script type=\"text/javascript\">\r\n");
      out.write("$(function(){\r\n");
      out.write("    $('a,a img,button').css({\r\n");
      out.write("        opacity: 1.0,\r\n");
      out.write("        filter: \"alpha(opacity=100)\"\r\n");
      out.write("        }).hover(function(){\r\n");
      out.write("            $(this).fadeTo(200,0.6);\r\n");
      out.write("        },function(){\r\n");
      out.write("            $(this).fadeTo(200,1.0);\r\n");
      out.write("    })\r\n");
      out.write("});\r\n");
      out.write("</script>\r\n");
      out.write("</head>\r\n");
      out.write("<body>\r\n");
      out.write("\r\n");
      out.write("\r\n");

      HttpSession examationsearchsession = request.getSession(false);

      ExamationInfoDto examationinfo =
          (ExamationInfoDto) examationsearchsession.getAttribute("examationinfo");

      int i = Integer.parseInt(request.getParameter("forid"));

      out.write("\r\n");
      out.write("\r\n");
      out.write(
          "<header><h1><a href=\"/testmanagement/examationlist\">検定管理システム</a></h1></header>\r\n");
      out.write("\r\n");
      out.write("<div class=\"main\">\r\n");
      out.write("\r\n");
      out.write("\t<div class=\"info\">\r\n");
      out.write("\t<h2>受験検定追加</h2>\r\n");
      out.write("\t<p>受験検定の合否を選択してください。</p>\r\n");
      out.write("\r\n");
      out.write("\t<table class=\"list\">\r\n");
      out.write("\t\t<tr>\r\n");
      out.write("\t\t\t<td class=\"testadd\">実施日</td><td>");
      out.print(examationinfo.getTestDay().get(i));
      out.write("</td>\r\n");
      out.write("\t\t</tr>\r\n");
      out.write("\t\t<tr>\r\n");
      out.write("\t\t\t<td class=\"testadd\">主催</td><td>");
      out.print(examationinfo.getSponsor().get(i));
      out.write("</td>\r\n");
      out.write("\t\t</tr>\r\n");
      out.write("\t\t<tr>\r\n");
      out.write("\t\t\t<td class=\"testadd\">検定名</td><td>");
      out.print(examationinfo.getTestName().get(i));
      out.write("</td>\r\n");
      out.write("\t\t</tr>\r\n");
      out.write("\t</table>\r\n");
      out.write("\r\n");
      out.write("\t<form action=\"");
      out.print(request.getContextPath());
      out.write("/view/examationaddchack.jsp\">\r\n");
      out.write("\t\t<select name=\"gouhi\" class=\"drop\">\r\n");
      out.write("\t\t<optgroup label=\"合否\">\r\n");
      out.write("\t\t<option value=\"1\">合格</option>\r\n");
      out.write("\t\t<option value=\"0\">不合格</option>\r\n");
      out.write("\t\t</optgroup>\r\n");
      out.write("\t\t</select>\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\t<table class=\"button\">\r\n");
      out.write("\t\t<tr>\r\n");
      out.write("\t\t\t<td class=\"button\">\r\n");
      out.write("\t\t\t\t<button class=\"button1\" onClick=\"history.back()\">戻る</button>\r\n");
      out.write("\t\t\t</td>\r\n");
      out.write("\t\t\t<td class=\"button\">\r\n");
      out.write("\r\n");
      out.write("\t\t\t\t<button class=\"button1\" type=\"submit\" name=\"i\" value=\"");
      out.print(i);
      out.write("\">確認</button>\r\n");
      out.write("\r\n");
      out.write("\t\t\t</td>\r\n");
      out.write("\t\t</tr>\r\n");
      out.write("\t</table>\r\n");
      out.write("\t</form>\r\n");
      out.write("\t</div>\r\n");
      out.write("\r\n");
      out.write("\t<div class=\"side\">\r\n");
      out.write("\t<form action=\"");
      out.print(request.getContextPath());
      out.write("/logout\"><button class=\"menu\" type=\"submit\">ログアウト</button></form>\r\n");
      out.write("\r\n");
      out.write("\t<p><hr></p>\r\n");
      out.write("\r\n");
      out.write("\t<form action=\"");
      out.print(request.getContextPath());
      out.write(
          "/examationlist\"><button class=\"menu\" type=\"submit\">受験検定一覧</button></form>\r\n");
      out.write("\t<form action=\"");
      out.print(request.getContextPath());
      out.write(
          "/view/examationadd1.jsp\" method=\"POST\"><button class=\"menu\" type=\"submit\">受験検定の追加</button></form>\r\n");
      out.write("\t</div>\r\n");
      out.write("\r\n");
      out.write("</div>\r\n");
      out.write("\r\n");
      out.write("<footer>&copy; 2016 WhiteCo.</footer>\r\n");
      out.write("\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 {
            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(
      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(
          "<!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("\t<link rel=\"stylesheet\" type=\"text/css\" href=\"css/articleForm.css\">\n");
      out.write("\t<script src=\"http://code.jquery.com/jquery-latest.min.js\"></script>\n");
      out.write("\t<script type=\"text/javascript\"  src=\"js/test.js\"></script>\n");
      out.write("\n");
      out.write("</head>\n");
      out.write("<body>\n");
      out.write("\t<div id = \"article_form_container\">\n");
      out.write(
          "\t\t<form name=\"articleForm\" action=\"/write\" method=\"post\" enctype=\"multipart/form-data\">\n");
      out.write("\t\t\t<div id =\"article_form\">\n");
      out.write(
          "\t\t\t\t<div id = \"article_title\">제목 : <input type=\"text\" name=\"title\" placeholder=\"제목을 입력하세요.\"/></div>\n");
      out.write(
          "\t\t\t\t<div id = \"address\">주소 : <input type=\"text\" name=\"address\" placeholder=\"주소를 입력하세요.\"/></div>\n");
      out.write("\t\t\t\t<div id = \"recruit_count\">\n");
      out.write("\t\t\t\t\t<div id=\"recruit_count_text\">모집 인원 : </div>\n");
      out.write("\t\t\t\t\t<table id=\"select_recruit_count\">\n");
      out.write("\t\t\t\t\t    <tr>\n");
      out.write(
          "\t\t\t\t\t    \t<td style=\"padding-left:0px; border: 1px solid #bcbcbc;\"><button id =\"down_button\" name=\"title\" style=\"height:24px;width:23px;text-align:center;border:none;border-right:0px; border-top:0px; boder-left:0px; boder-bottom:0px;background-color:white;color:#CFCFCF\">-</button></td>\n");
      out.write(
          "\t\t\t\t\t\t\t<td style=\"padding-left:0px; border: 1px solid #bcbcbc;\"><div id=\"recruitCount\"name=\"recruitCount\" type=\"text\" value=\"1\" style=\"width:23px;text-align:center;border:none;border-right:0px; border-top:0px; boder-left:0px; boder-bottom:0px\"/>1</td>\n");
      out.write(
          "\t\t\t\t\t\t\t<td style=\"padding-left:0px; border: 1px solid #bcbcbc;\"><button id = \"up_button\" style=\"width:23px;text-align:center;border:none;border-right:0px; border-top:0px; boder-left:0px; boder-bottom:0px;background-color:white;color:#CFCFCF;\">+</button></td>\n");
      out.write("\t\t\t\t\t\t</tr>\n");
      out.write("\t\t\t\t\t</table>\n");
      out.write("\t\t\t\t</div>\n");
      out.write("\t\t\t\t<div id =\"visible_btn\" onclick=\"visible()\"></div>\n");
      out.write("\t\t\t\t<div id =\"img_container\" style=\"display:none;\">\n");
      out.write("\t\t\t\t\n");
      out.write("\n");
      out.write("\t\t\t\t<!-- img 시작  -->\n");
      out.write("\t\t\t\t\t<div id = \"before-img\">\n");
      out.write(
          "\t\t\t\t\t\t사진 등록<br /><input type=\"file\" name=\"file\" style=\"text-align:center; width:150px;\"/>\n");
      out.write(
          "\t\t\t\t\t\t<input type=\"hidden\" name=\"localLocation\" value=\"/userImg/beforeImg\">\n");
      out.write("\t\t\t\t\t</div>\n");
      out.write("\n");
      out.write("\t\t\t\t\t<div id=\"area\" style=\"width:600px\";></div>\n");
      out.write("\n");
      out.write("\t\t\t\t\t<div id ='square-list' style=\"display:none\">\n");
      out.write("\t\t\t\t\t\t<div class = 'square-wrapper'>\n");
      out.write("\t\t\t\t\t\t\t<div class=\"square\">\n");
      out.write(
          "\t\t\t\t\t\t\t\t<img class=\"0\" src=\"img/dragndrop/0.png\" height=\"60\" width=\"60\">\n");
      out.write("\t\t\t\t\t\t\t</div> \t\n");
      out.write("\t\t\t\t\t\t</div>\n");
      out.write("\t\t\t\t\t\t<div class = 'square-wrapper'>\n");
      out.write("\t\t\t\t\t\t\t<div class=\"square\">\n");
      out.write(
          "\t\t\t\t\t\t\t\t<img class=\"1\" src=\"img/dragndrop/1.png\" height=\"60\" width=\"60\">\n");
      out.write("\t\t\t\t\t\t\t</div>\n");
      out.write("\t\t\t\t\t\t</div>\n");
      out.write("\t\t\t\t\t\t<div class = 'square-wrapper'>\n");
      out.write("\t\t\t\t\t\t\t<div class=\"square\">\n");
      out.write(
          "\t\t\t\t\t\t\t\t<img class=\"2\" src=\"img/dragndrop/2.png\" height=\"60\" width=\"60\">\n");
      out.write("\t\t\t\t\t\t\t</div>\n");
      out.write("\t\t\t\t\t\t</div>\n");
      out.write("\t\t\t\t\t\t<div class = 'square-wrapper'>\n");
      out.write("\t\t\t\t\t\t\t<div class=\"square\">\n");
      out.write(
          "\t\t\t\t\t\t\t\t<img class=\"3\" src=\"img/dragndrop/3.png\" height=\"60\" width=\"60\">\n");
      out.write("\t\t\t\t\t\t\t</div>\n");
      out.write("\t\t\t\t\t\t</div>\n");
      out.write("\t\t\t\t\t\t<div class = 'square-wrapper'>\n");
      out.write("\t\t\t\t\t\t\t<div class=\"square\">\n");
      out.write(
          "\t\t\t\t\t\t\t\t<img class=\"4\" src=\"img/dragndrop/4.png\" height=\"60\" width=\"60\">\n");
      out.write("\t\t\t\t\t\t\t</div>\n");
      out.write("\t\t\t\t\t\t</div>\n");
      out.write("\t\t\t\t\t\t<div class = 'square-wrapper'>\n");
      out.write("\t\t\t\t\t\t\t<div class=\"square\">\n");
      out.write(
          "\t\t\t\t\t\t\t\t<img class=\"5\" src=\"img/dragndrop/5.png\" height=\"80\" width=\"80\" style=\"margin-top:-12px;margin-left:-7px;\">\n");
      out.write("\t\t\t\t\t\t\t</div>\n");
      out.write("\t\t\t\t\t\t</div>\n");
      out.write("\t\t\t\t\t\t<div class = 'square-wrapper'>\n");
      out.write("\t\t\t\t\t\t\t<div class=\"square\">\n");
      out.write(
          "\t\t\t\t\t\t\t\t<img class=\"6\" src=\"img/dragndrop/6.png\" height=\"60\" width=\"60\">\n");
      out.write("\t\t\t\t\t\t\t</div>\n");
      out.write("\t\t\t\t\t\t</div>\n");
      out.write("\t\t\t\t\t\t<div class=\"row\">\n");
      out.write("\t\t\t\t\t\t</div>\n");
      out.write("\t\t\t\t\t\t<div class = 'square-wrapper2'>\n");
      out.write("\t\t\t\t\t\t\t<div class=\"square\">\n");
      out.write(
          "\t\t\t\t\t\t\t\t<img class=\"7\" src=\"img/dragndrop/7.png\" height=\"120\" width=\"80\">\n");
      out.write("\t\t\t\t\t\t\t</div>\n");
      out.write("\t\t\t\t\t\t</div>\n");
      out.write("\t\t\t\t\t\t<div class = 'square-wrapper'>\n");
      out.write("\t\t\t\t\t\t\t<div class=\"square\">\n");
      out.write(
          "\t\t\t\t\t\t\t\t<img class=\"8\" src=\"img/dragndrop/8.png\" height=\"120\" width=\"80\">\n");
      out.write("\t\t\t\t\t\t\t</div>\n");
      out.write("\t\t\t\t\t\t</div>\n");
      out.write("\t\t\t\t\t\t<div class = 'square-wrapper'>\n");
      out.write("\t\t\t\t\t\t\t<div class=\"square\">\n");
      out.write(
          "\t\t\t\t\t\t\t\t<img class=\"9\" src=\"img/dragndrop/9.png\" height=\"120\" width=\"80\">\n");
      out.write("\t\t\t\t\t\t\t</div>\n");
      out.write("\t\t\t\t\t\t</div>\n");
      out.write("\t\t\t\t\t\t<div class = 'square-wrapper'>\n");
      out.write("\t\t\t\t\t\t\t<div class=\"square\">\n");
      out.write(
          "\t\t\t\t\t\t\t\t<img class=\"10\" src=\"img/dragndrop/10.png\" height=\"120\" width=\"80\">\n");
      out.write("\t\t\t\t\t\t\t</div>\n");
      out.write("\t\t\t\t\t\t</div>\n");
      out.write("\t\t\t\t\t\t<div class = 'square-wrapper'>\n");
      out.write("\t\t\t\t\t\t\t<div class=\"square\">\n");
      out.write(
          "\t\t\t\t\t\t\t\t<img class=\"11\" src=\"img/dragndrop/11.png\" height=\"120\" width=\"80\">\n");
      out.write("\t\t\t\t\t\t\t</div>\n");
      out.write("\t\t\t\t\t\t</div>\n");
      out.write("\t\t\t\t\t\t<div class = 'square-wrapper'>\n");
      out.write("\t\t\t\t\t\t\t<div class=\"square\">\n");
      out.write(
          "\t\t\t\t\t\t\t\t<img class=\"12\" src=\"img/dragndrop/12.png\" height=\"120\" width=\"80\">\n");
      out.write("\t\t\t\t\t\t\t</div>\n");
      out.write("\t\t\t\t\t\t</div>\n");
      out.write("\t\t\t\t\t\t<div class = 'square-wrapper'>\n");
      out.write("\t\t\t\t\t\t\t<div class=\"square\">\n");
      out.write(
          "\t\t\t\t\t\t\t\t<img class=\"13\" src=\"img/dragndrop/13.png\" height=\"120\" width=\"80\">\n");
      out.write("\t\t\t\t\t\t\t</div>\n");
      out.write("\t\t\t\t\t\t</div>\n");
      out.write("\t\t\t\t\t\t<div class = 'square-wrapper'>\n");
      out.write("\t\t\t\t\t\t\t<div class=\"square\">\n");
      out.write(
          "\t\t\t\t\t\t\t\t<img class=\"14\" src=\"img/dragndrop/14.png\" height=\"120\" width=\"80\">\n");
      out.write("\t\t\t\t\t\t\t</div>\n");
      out.write("\t\t\t\t\t\t</div>\n");
      out.write("\t\t\t\t\t</div>\n");
      out.write("\t\t\t\t\t<div class=\"row\">\n");
      out.write("\t\t\t\t\t</div>\n");
      out.write("\t\t\t\t\t<!-- <div class = 'square-wrapper'>\n");
      out.write("\t\t\t\t\t\t<div class=\"square\">\n");
      out.write(
          "\t\t\t\t\t\t\t<img class=\"1\" src=\"img/dragndrop/1.png\" height=\"70\" width=\"90\" style=\"margin-top:30px;\">\n");
      out.write("\t\t\t\t\t\t</div>\n");
      out.write("\t\t\t\t\t</div>\n");
      out.write("\t\t\t\t\t<div class = 'square-wrapper'>\n");
      out.write("\t\t\t\t\t\t<div class=\"square\">\n");
      out.write(
          "\t\t\t\t\t\t\t<img class=\"2\" src=\"img/dragndrop/2.png\" height=\"120\" width=\"130\" style=\"margin-left:3px;margin-top:-8px;\">\n");
      out.write("\t\t\t\t\t\t</div>\n");
      out.write("\t\t\t\t\t</div>\n");
      out.write("\t\t\t\t\t<div class = 'square-wrapper'>\n");
      out.write("\t\t\t\t\t\t<div class=\"square\">\n");
      out.write(
          "\t\t\t\t\t\t\t<img class=\"3\" src=\"img/dragndrop/3.png\" height=\"140\" width=\"180\" style=\"margin-top:-10px;padding-left:30px;\">\n");
      out.write("\t\t\t\t\t\t</div>\n");
      out.write("\t\t\t\t\t</div> -->\n");
      out.write("\t\t\t\t<!-- 이미지 끝  -->\n");
      out.write("\t\t\t\t</div>\n");
      out.write("\t\t\t\t<!-- <input type=\"file\" name=\"beforeImg\" />\n");
      out.write("\t\t\t\t<input type=\"file\" name=\"afterImg\" /> -->\n");
      out.write(
          "\t\t\t\t<div id = \"article_content\"><textarea name=\"content\" placeholder=\"내용을 입력하세요.\" /></textarea></div>\n");
      out.write("\t\t\t\t<!-- <div id = \"recruit_count\">\n");
      out.write("\t\t\t\t\t<select>\n");
      out.write("\t\t\t\t\t  \t<option value=\"1\">1</option>\n");
      out.write("\t\t\t\t\t  \t<option value=\"2\">2</option>\n");
      out.write("\t\t\t\t\t  \t<option value=\"3\">3</option>\n");
      out.write("\t\t\t\t\t  \t<option value=\"4\">4</option>\n");
      out.write("\t\t\t\t\t  \t<option value=\"5\">5</option>\n");
      out.write("\t\t\t\t\t  \t<option value=\"6\">6</option>\n");
      out.write("\t\t\t\t\t  \t<option value=\"7\">7</option>\n");
      out.write("\t\t\t\t\t  \t<option value=\"8\">8</option>\n");
      out.write("\t\t\t\t\t  \t<option value=\"9\">9</option>\n");
      out.write("\t\t\t\t\t  \t<option value=\"10\">10</option>\n");
      out.write("\t\t\t\t\t  \t<option value=\"11\">11</option>\n");
      out.write("\t\t\t\t\t  \t<option value=\"12\">12</option>\n");
      out.write("\t\t\t\t\t  \t<option value=\"13\">13</option>\n");
      out.write("\t\t\t\t\t  \t<option value=\"14\">14</option>\n");
      out.write("\t\t\t\t\t  \t<option value=\"15\">15</option>\n");
      out.write("\t\t\t\t\t  \t<option value=\"16\">16</option>\n");
      out.write("\t\t\t\t\t  \t<option value=\"17\">17</option>\n");
      out.write("\t\t\t\t\t  \t<option value=\"18\">18</option>\n");
      out.write("\t\t\t\t\t  \t<option value=\"19\">19</option>\n");
      out.write("\t\t\t\t\t  \t<option value=\"20\">20</option>\n");
      out.write("\t\t\t\t\t  \t<option value=\"21\">21</option>\n");
      out.write("\t\t\t\t\t  \t<option value=\"22\">22</option>\n");
      out.write("\t\t\t\t\t  \t<option value=\"23\">23</option>\n");
      out.write("\t\t\t\t\t  \t<option value=\"24\">24</option>\n");
      out.write("\t\t\t\t\t  \t<option value=\"25\">25</option>\n");
      out.write("\t\t\t\t\t  \t<option value=\"26\">26</option>\n");
      out.write("\t\t\t\t\t  \t<option value=\"27\">27</option>\n");
      out.write("\t\t\t\t\t  \t<option value=\"28\">28</option>\n");
      out.write("\t\t\t\t\t  \t<option value=\"29\">29</option>\n");
      out.write("\t\t\t\t\t  \t<option value=\"30\">30</option>\n");
      out.write("\t\t\t\t\t</select> -->\n");
      out.write("\t\t\t\t<!-- <input type=\"hidden\" name=\"userId\" value=\"");
      out.write(
          (java.lang.String)
              org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                  "${article.userId}",
                  java.lang.String.class,
                  (javax.servlet.jsp.PageContext) _jspx_page_context,
                  null));
      out.write("\" /> -->\n");
      out.write("\t\t\t\t<!-- <input type=\"hidden\" name=\"id\" value=\"");
      out.write(
          (java.lang.String)
              org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                  "${article.id}",
                  java.lang.String.class,
                  (javax.servlet.jsp.PageContext) _jspx_page_context,
                  null));
      out.write("\" /> -->\n");
      out.write(
          "\t\t\t\t<div id = \"submit_button\" class=\"row\"><input type=\"submit\" name=\"submit\" value=\"확인\" /></div>\n");
      out.write("\t\t\t</div>\n");
      out.write("\t\t</form>\n");
      out.write("\t</div>\t\n");
      out.write("\t\t\n");
      out.write("\t\n");
      out.write("\t<!-- holder에 upload된 file 바로 보여주기 시작 -->\n");
      out.write("\t<script>\n");
      out.write("    \tvar upload = document.getElementsByTagName('input')[2];\n");
      out.write("        var holder = document.getElementById('area');\n");
      out.write("        var suqareList = document.getElementById('square-list');\n");
      out.write("       \n");
      out.write("      \tupload.onchange = function (e) {\n");
      out.write("        \te.preventDefault();\n");
      out.write("\n");
      out.write("        \tvar file = upload.files[0];\n");
      out.write("            var reader = new FileReader();\n");
      out.write("        \treader.onload = function (event) {\n");
      out.write("\t          \tvar img = new Image();\n");
      out.write("\t          \timg.src = event.target.result;\n");
      out.write("\t      \t\timg.style.position = \"relative\";\n");
      out.write("\t        \timg.width = 600;\n");
      out.write("\t        \timg.height = 400;\n");
      out.write("\n");
      out.write("\t          \tholder.innerHTML = '';\n");
      out.write("\t          \tholder.width = 600;\n");
      out.write("\t          \tholder.appendChild(img);\n");
      out.write("        \t};\n");
      out.write("        \treader.readAsDataURL(file);\n");
      out.write("        \treturn false;\n");
      out.write("      \t};\n");
      out.write("      \tsuqareList.style.display = \"block\";\n");
      out.write("    </script>\n");
      out.write("    <!-- holder에 upload된 file 바로 보여주기 끝 -->\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);
    }
  }
Ejemplo n.º 27
0
  public void _jspService(
      javax.servlet.http.HttpServletRequest request,
      javax.servlet.http.HttpServletResponse response)
      throws java.io.IOException, javax.servlet.ServletException {
    javax.servlet.http.HttpSession session = request.getSession(true);
    com.caucho.server.webapp.WebApp _jsp_application = _caucho_getApplication();
    javax.servlet.ServletContext application = _jsp_application;
    com.caucho.jsp.PageContextImpl pageContext =
        _jsp_application
            .getJspApplicationContext()
            .allocatePageContext(
                this, _jsp_application, request, response, null, session, 8192, true, false);
    javax.servlet.jsp.PageContext _jsp_parentContext = pageContext;
    javax.servlet.jsp.JspWriter out = pageContext.getOut();
    final javax.el.ELContext _jsp_env = pageContext.getELContext();
    javax.servlet.ServletConfig config = getServletConfig();
    javax.servlet.Servlet page = this;
    response.setContentType("text/html");
    try {

      response.setHeader("Pragma", "no-cache"); // HTTP 1.0
      response.setDateHeader("Expires", 0);
      response.setHeader("Cache-Control", "no-cache"); // HTTP 1.1

      String scmid = "";
      String scmnm = "";
      String usertype = "";
      String usergroup = "";
      // String scmsubids = "";
      String _adminid = "";
      String _adminname = "";
      String _admingroup = "";
      String _apessid = "";
      String _apessname = "";

      try {
        scmid = (String) session.getAttribute("scmid");
        _adminid = (String) session.getAttribute("adminid");

        if ((scmid == null || scmid.length() == 0 || scmid.equals("null"))
            && (_adminid == null || _adminid.length() == 0 || _adminid.equals("null"))) {
          response.sendRedirect("/login_first.html");
          return;
        }

        _adminname = (String) session.getAttribute("adminname");

        _apessid = (String) session.getAttribute("apessid");
        _apessname = (String) session.getAttribute("apessname");

        scmnm = (String) session.getAttribute("scmnm");

        usertype = (String) session.getAttribute("usertype");
        if (usertype == null) usertype = "";

        usergroup = (String) session.getAttribute("usergroup");
        if (usergroup == null) usergroup = "";

        // scmsubids = (String) session.getAttribute("scmsubids");
        // session.setMaxInactiveInterval(60*60);

      } catch (Exception e) {
        response.sendRedirect("/login_first.html");
        return;
      }

      out.write('\n');

      String id = request.getParameter("id");

      out.write(_jsp_string0, 0, _jsp_string0.length);
      out.print((id));
      out.write(_jsp_string1, 0, _jsp_string1.length);
      out.print((id));
      out.write(_jsp_string2, 0, _jsp_string2.length);
    } catch (java.lang.Throwable _jsp_e) {
      pageContext.handlePageException(_jsp_e);
    } finally {
      _jsp_application.getJspApplicationContext().freePageContext(pageContext);
    }
  }
Ejemplo n.º 28
0
  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("\r\n");
      out.write("<script type=\"text/javascript\">\r\n");
      out.write("jQuery(function(){\r\n");
      out.write("\tvar showTools = true;\r\n");
      out.write("\tif('");
      out.write(
          (java.lang.String)
              org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                  "${param.isView}",
                  java.lang.String.class,
                  (javax.servlet.jsp.PageContext) _jspx_page_context,
                  null,
                  false));
      out.write("' == 'true'||isViewHistoryTask==true){showTools = false;};\r\n");
      out.write("\tseajs.use([ \"js/apcomponent/aptable/aptable.js\" ], function(ApTable) {\r\n");
      out.write("\t\tnew ApTable({\r\n");
      out.write("\t\t\tid: \"contract_actual_lessee\",\r\n");
      out.write("\t\t\trenderTo: \"id_table_contract_actual_lessee\",\r\n");
      out.write("\t\t\twidth: globalClientWidth - 30,\r\n");
      out.write("\t\t\theight: 360,\r\n");
      out.write("\t\t\tlazyLoad: false,\r\n");
      out.write("\t\t\ttitle: \"\",\r\n");
      out.write("\t\t\tisClickLoad:false,\r\n");
      out.write("\t\t\tremoteOper : false,\r\n");
      out.write("\t\t\tshowPager: false,\r\n");
      out.write("\t\t\tmultiSelect: true,\r\n");
      out.write("\t\t\ttitle:'',\r\n");
      out.write("\t\t\tshowToolbar: showTools,\r\n");
      out.write("\t\t\ttools: ['add', '-', 'edit', '-','remove'],\r\n");
      out.write("\t\t\tdata: JsonUtil.decode('");
      out.write(
          (java.lang.String)
              org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(
                  "${empty json_contract_actual_lessee_str ? \"[]\" : json_contract_actual_lessee_str }",
                  java.lang.String.class,
                  (javax.servlet.jsp.PageContext) _jspx_page_context,
                  null,
                  false));
      out.write("'),\r\n");
      out.write("\t\t\tcolumns: [\r\n");
      out.write("\t\t\t\t{type:'indexcolumn'},\r\n");
      out.write("\t\t\t\t{type:'checkcolumn'},\r\n");
      out.write("\t\t\t\t{field:'id',header:'id',visible: false},\r\n");
      out.write("\t\t\t\t{field: 'actuallesseename', header: '实际承租人',\r\n");
      out.write("\t\t\t\t\tformEditorConfig:{\r\n");
      out.write("\t\t\t\t\t\tfieldVisible: false\r\n");
      out.write("\t\t\t\t\t\t}},\r\n");
      out.write("\t\t\t\t{field: 'actuallessee', header: '实际承租人', visible:false,\r\n");
      out.write("\t\t\t\t\tformEditorConfig:{\r\n");
      out.write("\t\t\t\t\t\tcolspan: 3,\r\n");
      out.write("\t\t\t\t\t\twidth: '100%',\r\n");
      out.write("\t\t\t\t\t\ttype: 'queryinput',\r\n");
      out.write("\t\t\t\t\t\trequired: true,\r\n");
      out.write("\t\t\t\t\t\ttextField: 'name',\r\n");
      out.write("\t\t\t\t\t\tvalueField: 'value',\r\n");
      out.write("\t\t\t\t\t\tallowInput: false,\r\n");
      out.write("\t\t\t\t\t\tfieldVisible: true,\r\n");
      out.write("\t\t\t\t\t\tparams: {cust_type: 'cust_type.vndr',\r\n");
      out.write(
          "\t\t\t\t\t\txmlFileName:'/eleasing/workflow/contract/contract_approval/contract_custinfo.xml'},\r\n");
      out.write("\t\t\t\t\t\tonSelect:function($me,inputObj, rowdata){\r\n");
      out.write("\t\t\t\t\t\t\tmini.getbyName(\"actuallesseename\").setValue(rowdata.name);\r\n");
      out.write("\t\t\t\t\t\t}\r\n");
      out.write("\t\t\t\t\t}\r\n");
      out.write("\t\t\t\t}\r\n");
      out.write("\t\t\t]\r\n");
      out.write("\t\t});\r\n");
      out.write("\t});\r\n");
      out.write("});\r\n");
      out.write("</script>\r\n");
      out.write("<div id=\"id_table_contract_actual_lessee\"></div>");
    } 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);
      }
    } finally {
      _jspxFactory.releasePageContext(_jspx_page_context);
    }
  }
Ejemplo n.º 30
0
  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("\n");
      out.write("<!DOCTYPE html>\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>File upload</title>\n");
      out.write("    </head>\n");
      out.write("    <body>\n");
      out.write("    <center>\n");
      out.write("        <h3>File Upload</h3>\n");
      out.write("        <form>\n");
      out.write("            <input type = \"file\" name = \"file\" size = \"50\"/>\n");
      out.write("            <br/>\n");
      out.write("            <input type = \"button\"  value = \"submit\"/>\n");
      out.write("        </form>\n");
      out.write("        \n");
      out.write("    </center>\n");
      out.write("    </body>\n");
      out.write("</html>\n");
    } 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);
    }
  }