Example #1
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);
   }
 }
  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);
    }
  }
Example #3
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);
    }
  }
Example #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;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);
    }
  }
Example #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=UTF-8");
      pageContext = _jspxFactory.getPageContext(this, request, response, null, true, 8192, true);
      _jspx_page_context = pageContext;
      application = pageContext.getServletContext();
      config = pageContext.getServletConfig();
      session = pageContext.getSession();
      out = pageContext.getOut();
      _jspx_out = out;

      out.write("\n");
      out.write("     \n");
      out.write(
          "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">\n");

      request.setCharacterEncoding("euc-kr");

      out.write('\n');
      guestModel.GuestDto guest = null;
      guest =
          (guestModel.GuestDto)
              _jspx_page_context.getAttribute("guest", javax.servlet.jsp.PageContext.PAGE_SCOPE);
      if (guest == null) {
        guest = new guestModel.GuestDto();
        _jspx_page_context.setAttribute("guest", guest, javax.servlet.jsp.PageContext.PAGE_SCOPE);
      }
      out.write('\n');
      org.apache.jasper.runtime.JspRuntimeLibrary.introspect(
          _jspx_page_context.findAttribute("guest"), request);
      out.write('\n');

      int num = Integer.parseInt(request.getParameter("num"));
      out.print("num" + num);
      int check = GuestDao.getInstance().delete(guest.getNum());
      out.print("check:" + check);

      out.write("\n");
      out.write("\n");
      out.write("<html>\n");
      out.write("<head>\n");
      out.write("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">\n");
      out.write("<title>Insert title here</title>\n");
      out.write("</head>\n");
      out.write("<body>\n");
      out.write("\t");
      if (check > 0) {
        out.write("\n");
        out.write("\t\t<script type=\"text/javascript\">\n");
        out.write("\t\t\talert(\"삭제되었습니다.\");\n");
        out.write("\t\t\tlocation.href=\"write.jsp\";\n");
        out.write("\t\t</script>\n");
        out.write("\t\n");
        out.write("\t");
      } else {
        out.write("\n");
        out.write("\t\t<script type=\"text/javascript\">\n");
        out.write("\t\t\talert(\"삭제 실패.\");\n");
        out.write("\t\t\tlocation.href=\"write.jsp\";\n");
        out.write("\t\t</script>\n");
        out.write("\t");
      }
      out.write("\n");
      out.write("\t\n");
      out.write("\t\n");
      out.write("</body>\n");
      out.write("</html>");
    } catch (java.lang.Throwable t) {
      if (!(t instanceof javax.servlet.jsp.SkipPageException)) {
        out = _jspx_out;
        if (out != null && out.getBufferSize() != 0)
          try {
            if (response.isCommitted()) {
              out.flush();
            } else {
              out.clearBuffer();
            }
          } catch (java.io.IOException e) {
          }
        if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
        else throw new ServletException(t);
      }
    } finally {
      _jspxFactory.releasePageContext(_jspx_page_context);
    }
  }
Example #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; 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");

      // エンコーディング
      response.setContentType("text/html; charset=utf-8");
      request.setCharacterEncoding("utf-8");
      DecimalFormat exFormat = new DecimalFormat("#,###,###,##0");

      Bean bean = new Bean();
      String searchitem = null;
      String searchcategory = null;

      if ((request.getAttribute("searchitem")) != null) {
        bean = (Bean) request.getAttribute("searchitem");
        searchitem = bean.getSearchitem();
      }

      if ((request.getAttribute("searchcategory")) != null) {
        bean = (Bean) request.getAttribute("searchcategory");
        searchcategory = bean.getSearchcategory();
      }

      out.write("\r\n");
      out.write("\r\n");

      if (session.getAttribute("login") == null) {
        response.sendRedirect("/toranoan/logout.jsp");
      }

      out.write("\r\n");
      out.write("\r\n");
      out.write("<html>\r\n");
      out.write("<head>\r\n");
      out.write("\t<title>出前出張サービス◆虎乃庵◆</title>\r\n");
      out.write(
          "\t<script type=\"text/javascript\" src=\"/toranoan/jquery-1.11.1.js\"></script>\r\n");
      out.write(
          "\t<script type=\"text/javascript\" src=\"/toranoan/jquery.validate.min.js\"></script>\r\n");
      out.write(
          "\t<script type=\"text/javascript\" src=\"/toranoan/controlledjquery.js\"></script>\r\n");
      out.write("<!-- <script src=\"http://code.jquery.com/jquery-1.11.1.min.js\"></script>\r\n");
      out.write(
          "\t <script src=\"http://jqueryvalidation.org/files/dist/jquery.validate.min.js\"></script> -->\r\n");
      out.write("<!-- <script type=\"text/javascript\">\r\n");
      out.write("\t\t$( \"#btn_sub\" ).validate({\r\n");
      out.write("\t\t  rules: {\r\n");
      out.write("\t\t    number: {\r\n");
      out.write("\t\t      // required: true,\r\n");
      out.write("\t\t      number: true\r\n");
      out.write("\t\t    }\r\n");
      out.write("\t\t  }\r\n");
      out.write("\t\t});\r\n");
      out.write("\t</script> -->\r\n");
      out.write("</head>\r\n");
      out.write("<body>\r\n");
      out.write(
          "<form action=\"logout\" method=\"POST\" name=\"logout\" id=\"submitform_logout\">\r\n");
      out.write("\t<input type=\"button\" value=\"ログアウト\" id=\"btn_logout\">\r\n");
      out.write("</form>\r\n");
      out.write("<h1>虎乃庵</h1>\r\n");
      out.write(
          "<form action=\"search\" method=\"GET\" name=\"search\"  id=\"submitform_search\">\r\n");
      out.write("\t<table>\r\n");
      out.write("\t\t<tr>\r\n");
      out.write("\t\t\t<td>お品書き</td>\r\n");
      out.write("\t\t\t<td><input type=\"text\" name=\"searchitem\" size=\"40\"></td>\r\n");
      out.write("\t\t</tr>\r\n");
      out.write("\t\t<tr>\r\n");
      out.write("\t\t\t<td>カテゴリ</td>\r\n");
      out.write("\t\t\t<td>\r\n");
      out.write("\t\t\t<input type=\"radio\" name=\"searchcategory\" value=\"そば\">そば\r\n");
      out.write("\t\t\t<input type=\"radio\" name=\"searchcategory\" value=\"うどん\">うどん\r\n");
      out.write("\t\t\t<input type=\"radio\" name=\"searchcategory\" value=\"飲み物\">飲み物\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<br>\r\n");
      out.write("\t<input type=\"button\" value=\"検索\" id=\"btn_search\">\r\n");
      out.write("</form>\r\n");
      out.write("<div id=\"loading\"></div>\r\n");
      out.write("<div id=\"result\"></div>\r\n");
      out.write("\r\n");
      out.write("<!-- ");

      if (searchitem == null && searchcategory == null) {
        searchitem = "指定なし";
        searchcategory = "指定なし";
      } else {
        if ("".equals(searchitem)) {
          if (searchcategory == null) {
            searchitem = "指定なし";
            searchcategory = "指定なし";
          } else {
            searchitem = "指定なし";
          }
        } else {
          if (searchcategory == null) {
            searchcategory = "指定なし";
          } else {
          }
        }

        out.write("\r\n");
        out.write("<br>\r\n");
        out.write("<h2>検索結果</h2>\r\n");
        out.write("----------------------------------------\r\n");
        out.write("<table>\r\n");
        out.write("\t<tr>\r\n");
        out.write("\t\t<td align=\"center\">");
        out.print("検索ワード: ");
        out.write("</td>\r\n");
        out.write("\t\t<td>");
        out.print(searchitem);
        out.write("</td>\r\n");
        out.write("\t</tr>\r\n");
        out.write("\t<tr>\r\n");
        out.write("\t\t<td align=\"center\">");
        out.print("カテゴリ: ");
        out.write("</td>\r\n");
        out.write("\t\t<td>");
        out.print(searchcategory);
        out.write("</td>\r\n");
        out.write("\t</tr>\r\n");
        out.write("</table>\r\n");
        out.write("----------------------------------------\r\n");
        out.write("<br>\r\n");
        out.write(
            "<form action=\"order\" method=\"POST\" name=\"order\" id=\"submitform_order\">\r\n");
        out.write(
            "\t<table border=\"1\" cellspacing=\"0\" cellpadding=\"5\" bordercolor=\"#333333\">\r\n");
        out.write("\t\t<tr bgcolor=\"#EE0000\">\r\n");
        out.write("\t\t\t<th><font color=\"#FFFFFF\">メニュー</font></th>\r\n");
        out.write("\t\t\t<th><font color=\"#FFFFFF\">値段</font></th>\r\n");
        out.write("\t\t\t<th><font color=\"#FFFFFF\">カテゴリー</font></th>\r\n");
        out.write("\t\t\t<th><font color=\"#FFFFFF\">温・冷</font></th>\r\n");
        out.write("\t\t\t<th><font color=\"#FFFFFF\">数量</font></th>\r\n");
        out.write("\t\t</tr>\r\n");

        List resultlist = (List) session.getAttribute("itemresult");
        for (int i = 0; i < resultlist.size(); i++) {

          out.write("\r\n");
          out.write("\t\t<tr>\r\n");

          Bean s = (Bean) resultlist.get(i);
          out.println(
              "<td>"
                  + s.getItem()
                  + "</td> <td align=\"right\">\\"
                  + exFormat.format(s.getPrice())
                  + "</td> <td align=\"center\">"
                  + s.getCategory()
                  + "</td> <td align=\"center\">"
                  + s.getHotcold()
                  + "</td><td><input type=\"number\" min=\"0\" name=\""
                  + s.getId()
                  + "_"
                  + s.getItem()
                  + "_"
                  + s.getPrice()
                  + "\"></td>");
        }

        out.write("\r\n");
        out.write("\t\t</tr>\r\n");
        out.write("\t</table>\r\n");
        out.write("\t<input type=\"button\" value=\"注文\" id=\"btn_order\">\r\n");
        out.write("</form>\r\n");
        out.write("<form action=\"./order.jsp\" method=\"GET\" id=\"submitform_check\">\r\n");
        out.write("\t\t<input type=\"button\" value=\"確認画面へ\" id=\"btn_check\">\r\n");
        out.write("</form>\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 {
            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);
    }
  }
Example #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; charset=UTF-8");
      pageContext = _jspxFactory.getPageContext(this, request, response, null, true, 8192, true);
      _jspx_page_context = pageContext;
      application = pageContext.getServletContext();
      config = pageContext.getServletConfig();
      session = pageContext.getSession();
      out = pageContext.getOut();
      _jspx_out = out;

      out.write("\n");
      out.write("  \n");
      out.write(" ");
      request.setCharacterEncoding("utf-8");
      out.write('\n');
      out.write(' ');
      movie.admin.filmBean gb = null;
      gb =
          (movie.admin.filmBean)
              _jspx_page_context.getAttribute("gb", javax.servlet.jsp.PageContext.PAGE_SCOPE);
      if (gb == null) {
        gb = new movie.admin.filmBean();
        _jspx_page_context.setAttribute("gb", gb, javax.servlet.jsp.PageContext.PAGE_SCOPE);
      }
      out.write('\n');
      out.write(' ');
      movie.admin.film _film = null;
      _film =
          (movie.admin.film)
              _jspx_page_context.getAttribute("_film", javax.servlet.jsp.PageContext.PAGE_SCOPE);
      if (_film == null) {
        _film = new movie.admin.film();
        _jspx_page_context.setAttribute("_film", _film, javax.servlet.jsp.PageContext.PAGE_SCOPE);
      }
      out.write('\n');
      out.write(' ');
      org.apache.jasper.runtime.JspRuntimeLibrary.introspect(
          _jspx_page_context.findAttribute("_film"), request);
      out.write("\n");
      out.write(" \n");
      out.write("\n");
      out.write(" ");

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

      if (action.equals("list")) {
        ArrayList<film> films = gb.getDBlist();
        request.setAttribute("datas", films);
        pageContext.forward("admin_mode.jsp");
      }
      if (action.equals("back")) {
        ArrayList<film> films = gb.getDBlist();
        request.setAttribute("datas", films);
        pageContext.forward("admin_mode.jsp");
      } else if (action.equals("insert")) {
        if (gb.insertDB(_film)) {
          response.sendRedirect("film_control.jsp?action=list");
        } else throw new Exception("DB 입력 오류");
      } else if (action.equals("delete")) {

        if (gb.deleteDB(_film.getId_film())) {
          response.sendRedirect("film_control.jsp?action=list");
        } else throw new Exception("DB 삭제 오류");
      }
      // else if(action.equals("update")){
      // }
      else {
      }

      out.write("\n");
      out.write("    \n");
      out.write(
          "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">\n");
      out.write("<html>\n");
      out.write("<head>\n");
      out.write("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">\n");
      out.write("<title>Insert title here</title>\n");
      out.write("</head>\n");
      out.write("<body>\n");
      out.write("\n");
      out.write("</body>\n");
      out.write("</html>");
    } catch (java.lang.Throwable t) {
      if (!(t instanceof javax.servlet.jsp.SkipPageException)) {
        out = _jspx_out;
        if (out != null && out.getBufferSize() != 0)
          try {
            if (response.isCommitted()) {
              out.flush();
            } else {
              out.clearBuffer();
            }
          } catch (java.io.IOException e) {
          }
        if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
        else throw new ServletException(t);
      }
    } finally {
      _jspxFactory.releasePageContext(_jspx_page_context);
    }
  }
Example #8
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, "/error.jsp", 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.myconf.AuthTag _jsp_tag0 = null;
    org.apache.struts.taglib.bean.MessageTag _jsp_tag1 = null;
    org.apache.struts.taglib.html.RewriteTag _jsp_tag2 = null;
    org.apache.struts.taglib.bean.MessageTag _jsp_tag3 = null;
    try {

      // *********************************
      // security
      // *********************************

      pageContext.write(_jsp_string0, 0, _jsp_string0.length);
      pageContext.write(_jsp_string0, 0, _jsp_string0.length);
      if (_jsp_tag0 == null) {
        _jsp_tag0 = new org.myconf.AuthTag();
        _jsp_tag0.setPageContext(pageContext);
        _jsp_tag0.setParent((javax.servlet.jsp.tagext.Tag) null);
        _jsp_tag0.setModule("admin");
      }

      _jsp_tag0.doStartTag();
      _jsp_tag0.setBodyContent(null);
      int _jsp_endTagVar3 = _jsp_tag0.doEndTag();
      if (_jsp_endTagVar3 == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) return;
      pageContext.write(_jsp_string0, 0, _jsp_string0.length);

      // *********************************
      // define
      // *********************************

      pageContext.write(_jsp_string0, 0, _jsp_string0.length);
      pageContext.write(_jsp_string0, 0, _jsp_string0.length);
      pageContext.write(_jsp_string0, 0, _jsp_string0.length);
      pageContext.write(_jsp_string0, 0, _jsp_string0.length);
      pageContext.write(_jsp_string0, 0, _jsp_string0.length);
      pageContext.write(_jsp_string0, 0, _jsp_string0.length);
      pageContext.write(_jsp_string0, 0, _jsp_string0.length);
      pageContext.write(_jsp_string0, 0, _jsp_string0.length);
      pageContext.write(_jsp_string0, 0, _jsp_string0.length);
      pageContext.write(_jsp_string0, 0, _jsp_string0.length);

      // *********************************
      // variable
      // *********************************

      pageContext.write(_jsp_string0, 0, _jsp_string0.length);

      // bbs data
      int id = RequestUtils.getParam(request, "id", 0);
      List list = BBSDAO.getDiscuss(id);
      if ((list == null) || (list.size() == 0)) {
        response.sendRedirect(
            Globals.root(request)
                + "/bbs/index2.jsp?page="
                + StringUtils.exportString(request.getParameter("page")));
        return;
      }
      String defaultTitle = null;
      BBSBean bbs = null;

      pageContext.write(_jsp_string1, 0, _jsp_string1.length);

      // *********************************
      // head
      // *********************************

      pageContext.write(_jsp_string0, 0, _jsp_string0.length);
      pageContext.include("/inc/head.jsp");
      pageContext.write(_jsp_string2, 0, _jsp_string2.length);

      // *********************************
      // top
      // *********************************

      pageContext.write(_jsp_string0, 0, _jsp_string0.length);
      pageContext.include("/inc/logo_admin.jsp");
      pageContext.write(_jsp_string0, 0, _jsp_string0.length);

      // *********************************
      // content
      // *********************************

      pageContext.write(_jsp_string3, 0, _jsp_string3.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("error.staritem.not.null");
      _jsp_tag1.doStartTag();
      pageContext.write(_jsp_string4, 0, _jsp_string4.length);
      _jsp_tag1.setKey("error.staritem.not.null");
      _jsp_tag1.doStartTag();
      pageContext.write(_jsp_string5, 0, _jsp_string5.length);
      _jsp_tag1.setKey("common.title.bbs");
      _jsp_tag1.doStartTag();
      pageContext.write(_jsp_string6, 0, _jsp_string6.length);
      if (((BBSBean) list.get(0)).getIsTop() == BBSBean.TRUE) {
        pageContext.write(_jsp_string7, 0, _jsp_string7.length);
        if (_jsp_tag2 == null) {
          _jsp_tag2 = new org.apache.struts.taglib.html.RewriteTag();
          _jsp_tag2.setPageContext(pageContext);
          _jsp_tag2.setParent((javax.servlet.jsp.tagext.Tag) null);
        }

        _jsp_tag2.setPage("/bbs.do");
        int _jspEval15 = _jsp_tag2.doStartTag();
        int _jsp_endTagVar16 = _jsp_tag2.doEndTag();
        if (_jsp_endTagVar16 == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) return;
        pageContext.write(_jsp_string8, 0, _jsp_string8.length);
        out.print((id));
        pageContext.write(_jsp_string9, 0, _jsp_string9.length);
        out.print((id));
        pageContext.write(_jsp_string10, 0, _jsp_string10.length);
        out.print((StringUtils.exportString(request.getParameter("page"))));
        pageContext.write(_jsp_string11, 0, _jsp_string11.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("common.text.bbs.cancel.top");
        _jsp_tag1.doStartTag();
        pageContext.write(_jsp_string12, 0, _jsp_string12.length);
      } else {
        pageContext.write(_jsp_string13, 0, _jsp_string13.length);
        if (_jsp_tag2 == null) {
          _jsp_tag2 = new org.apache.struts.taglib.html.RewriteTag();
          _jsp_tag2.setPageContext(pageContext);
          _jsp_tag2.setParent((javax.servlet.jsp.tagext.Tag) null);
        }

        _jsp_tag2.setPage("/bbs.do");
        int _jspEval22 = _jsp_tag2.doStartTag();
        int _jsp_endTagVar23 = _jsp_tag2.doEndTag();
        if (_jsp_endTagVar23 == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) return;
        pageContext.write(_jsp_string8, 0, _jsp_string8.length);
        out.print((id));
        pageContext.write(_jsp_string9, 0, _jsp_string9.length);
        out.print((id));
        pageContext.write(_jsp_string10, 0, _jsp_string10.length);
        out.print((StringUtils.exportString(request.getParameter("page"))));
        pageContext.write(_jsp_string14, 0, _jsp_string14.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("common.text.bbs.top.article");
        _jsp_tag1.doStartTag();
        pageContext.write(_jsp_string12, 0, _jsp_string12.length);
      }
      pageContext.write(_jsp_string15, 0, _jsp_string15.length);
      if (_jsp_tag2 == null) {
        _jsp_tag2 = new org.apache.struts.taglib.html.RewriteTag();
        _jsp_tag2.setPageContext(pageContext);
        _jsp_tag2.setParent((javax.servlet.jsp.tagext.Tag) null);
      }

      _jsp_tag2.setPage("/bbs.do");
      int _jspEval29 = _jsp_tag2.doStartTag();
      int _jsp_endTagVar30 = _jsp_tag2.doEndTag();
      if (_jsp_endTagVar30 == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) return;
      pageContext.write(_jsp_string16, 0, _jsp_string16.length);
      out.print((id));
      pageContext.write(_jsp_string17, 0, _jsp_string17.length);
      out.print((list.size()));
      pageContext.write(_jsp_string18, 0, _jsp_string18.length);
      out.print((StringUtils.exportString(request.getParameter("page"))));
      pageContext.write(_jsp_string19, 0, _jsp_string19.length);

      for (int i = 0; i < list.size(); i++) {
        bbs = (BBSBean) list.get(i);
        if (i == 0) {
          defaultTitle = "RE:" + bbs.getTitle();
        }

        pageContext.write(_jsp_string20, 0, _jsp_string20.length);
        out.print((i));
        pageContext.write(_jsp_string21, 0, _jsp_string21.length);
        out.print((i));
        pageContext.write(_jsp_string22, 0, _jsp_string22.length);
        out.print((bbs.getId()));
        pageContext.write(_jsp_string23, 0, _jsp_string23.length);
        out.print((bbs.getTitle()));
        pageContext.write(_jsp_string24, 0, _jsp_string24.length);
        if (i == 0) {
          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("common.text.bbs.master");
          _jsp_tag1.doStartTag();
        } else {
          if (_jsp_tag3 == null) {
            _jsp_tag3 = new org.apache.struts.taglib.bean.MessageTag();
            _jsp_tag3.setPageContext(pageContext);
            _jsp_tag3.setParent((javax.servlet.jsp.tagext.Tag) null);
            _jsp_tag3.setKey("common.text.bbs.ceng");
          }

          _jsp_tag3.setArg0(String.valueOf(i));
          _jsp_tag3.doStartTag();
        }
        pageContext.write(_jsp_string25, 0, _jsp_string25.length);
        out.print((bbs.getContent().replaceAll("\r", "<br>")));
        pageContext.write(_jsp_string26, 0, _jsp_string26.length);
        if (i == 0) {
          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("common.text.bbs.beginer");
          _jsp_tag1.doStartTag();
        } else {
          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("common.text.bbs.replyer");
          _jsp_tag1.doStartTag();
        }
        pageContext.write(_jsp_string27, 0, _jsp_string27.length);
        out.print((bbs.getAuthorName()));
        pageContext.write(_jsp_string28, 0, _jsp_string28.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("common.bbs.title.issue.time");
        _jsp_tag1.doStartTag();
        out.print((StringUtils.exportDate(bbs.getCreateTime(), "yyyy-MM-dd HH:mm")));
        pageContext.write(_jsp_string29, 0, _jsp_string29.length);
        _jsp_tag1.setKey("ins.confirm.delete");
        _jsp_tag1.doStartTag();
        pageContext.write(_jsp_string30, 0, _jsp_string30.length);
        _jsp_tag1.setKey("common.button.bbs.delete");
        _jsp_tag1.doStartTag();
        pageContext.write(_jsp_string31, 0, _jsp_string31.length);
      }
      pageContext.write(_jsp_string32, 0, _jsp_string32.length);
      if (_jsp_tag2 == null) {
        _jsp_tag2 = new org.apache.struts.taglib.html.RewriteTag();
        _jsp_tag2.setPageContext(pageContext);
        _jsp_tag2.setParent((javax.servlet.jsp.tagext.Tag) null);
      }

      _jsp_tag2.setPage("/bbs.do");
      int _jspEval54 = _jsp_tag2.doStartTag();
      int _jsp_endTagVar55 = _jsp_tag2.doEndTag();
      if (_jsp_endTagVar55 == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) return;
      pageContext.write(_jsp_string33, 0, _jsp_string33.length);
      out.print((id));
      pageContext.write(_jsp_string34, 0, _jsp_string34.length);
      out.print((id));
      pageContext.write(_jsp_string35, 0, _jsp_string35.length);
      out.print((StringUtils.exportString(request.getParameter("page"))));
      pageContext.write(_jsp_string36, 0, _jsp_string36.length);
      _jsp_tag2.setPage("/images/orange_arrow.gif");
      int _jspEval58 = _jsp_tag2.doStartTag();
      int _jsp_endTagVar59 = _jsp_tag2.doEndTag();
      if (_jsp_endTagVar59 == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) return;
      pageContext.write(_jsp_string37, 0, _jsp_string37.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("common.text.bbs.reply");
      _jsp_tag1.doStartTag();
      pageContext.write(_jsp_string38, 0, _jsp_string38.length);
      _jsp_tag1.setKey("common.bbs.title.subject");
      _jsp_tag1.doStartTag();
      pageContext.write(_jsp_string39, 0, _jsp_string39.length);
      out.print((defaultTitle));
      pageContext.write(_jsp_string40, 0, _jsp_string40.length);
      _jsp_tag1.setKey("common.bbs.title.content");
      _jsp_tag1.doStartTag();
      pageContext.write(_jsp_string41, 0, _jsp_string41.length);
      _jsp_tag1.setKey("common.text.bbs.reply");
      _jsp_tag1.doStartTag();
      pageContext.write(_jsp_string42, 0, _jsp_string42.length);
      _jsp_tag2.setPage("/bbs/index2.jsp?page=");
      int _jspEval74 = _jsp_tag2.doStartTag();
      int _jsp_endTagVar75 = _jsp_tag2.doEndTag();
      if (_jsp_endTagVar75 == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) return;
      out.print((StringUtils.exportString(request.getParameter("page"))));
      pageContext.write(_jsp_string43, 0, _jsp_string43.length);
      _jsp_tag1.setKey("common.button.back");
      _jsp_tag1.doStartTag();
      pageContext.write(_jsp_string44, 0, _jsp_string44.length);

      // *********************************
      // end content
      // *********************************

      pageContext.write(_jsp_string0, 0, _jsp_string0.length);

      // **********************************
      // footer
      // **********************************

      pageContext.write(_jsp_string0, 0, _jsp_string0.length);
      pageContext.include("/inc/footer.jsp");
      pageContext.write(_jsp_string45, 0, _jsp_string45.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();
      if (_jsp_tag2 != null) _jsp_tag2.release();
      if (_jsp_tag3 != null) _jsp_tag3.release();
      JspFactory.getDefaultFactory().releasePageContext(pageContext);
    }
  }
Example #9
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=utf-8");
    request.setCharacterEncoding("UTF-8");
    dms.tag.CategorySelectTag _jsp_CategorySelectTag_0 = null;
    dms.tag.CitySelectTag _jsp_CitySelectTag_1 = null;
    dms.tag.DomainSelectTag _jsp_DomainSelectTag_2 = null;
    dms.tag.ServiceSelectTag _jsp_ServiceSelectTag_3 = null;
    dms.tag.GroupSelectTag _jsp_GroupSelectTag_4 = null;
    org.apache.taglibs.standard.tag.rt.fmt.FormatDateTag _jsp_FormatDateTag_5 = null;
    try {
      out.write(_jsp_string0, 0, _jsp_string0.length);
      _caucho_expr_0.print(out, _jsp_env, false);
      out.write(_jsp_string1, 0, _jsp_string1.length);
      if (_jsp_CategorySelectTag_0 == null) {
        _jsp_CategorySelectTag_0 = new dms.tag.CategorySelectTag();
        _jsp_CategorySelectTag_0.setPageContext(pageContext);
        _jsp_CategorySelectTag_0.setParent((javax.servlet.jsp.tagext.Tag) null);
        _jsp_CategorySelectTag_0.setName("category");
      }

      _jsp_CategorySelectTag_0.setCatId(new java.lang.Long(_caucho_expr_1.evalLong(_jsp_env)));
      _jsp_CategorySelectTag_0.doStartTag();
      out.write(_jsp_string2, 0, _jsp_string2.length);
      if (_jsp_CitySelectTag_1 == null) {
        _jsp_CitySelectTag_1 = new dms.tag.CitySelectTag();
        _jsp_CitySelectTag_1.setPageContext(pageContext);
        _jsp_CitySelectTag_1.setParent((javax.servlet.jsp.tagext.Tag) null);
        _jsp_CitySelectTag_1.setName("city");
      }

      _jsp_CitySelectTag_1.setCityId(new java.lang.Long(_caucho_expr_2.evalLong(_jsp_env)));
      _jsp_CitySelectTag_1.doStartTag();
      out.write(_jsp_string3, 0, _jsp_string3.length);
      if (_jsp_DomainSelectTag_2 == null) {
        _jsp_DomainSelectTag_2 = new dms.tag.DomainSelectTag();
        _jsp_DomainSelectTag_2.setPageContext(pageContext);
        _jsp_DomainSelectTag_2.setParent((javax.servlet.jsp.tagext.Tag) null);
        _jsp_DomainSelectTag_2.setName("siteId");
      }

      _jsp_DomainSelectTag_2.setDomainId(new java.lang.Long(_caucho_expr_3.evalLong(_jsp_env)));
      _jsp_DomainSelectTag_2.doStartTag();
      out.write(_jsp_string4, 0, _jsp_string4.length);
      if (_jsp_ServiceSelectTag_3 == null) {
        _jsp_ServiceSelectTag_3 = new dms.tag.ServiceSelectTag();
        _jsp_ServiceSelectTag_3.setPageContext(pageContext);
        _jsp_ServiceSelectTag_3.setParent((javax.servlet.jsp.tagext.Tag) null);
        _jsp_ServiceSelectTag_3.setName("service");
      }

      _jsp_ServiceSelectTag_3.setService(new java.lang.Long(_caucho_expr_4.evalLong(_jsp_env)));
      _jsp_ServiceSelectTag_3.doStartTag();
      out.write(_jsp_string5, 0, _jsp_string5.length);
      if (_jsp_GroupSelectTag_4 == null) {
        _jsp_GroupSelectTag_4 = new dms.tag.GroupSelectTag();
        _jsp_GroupSelectTag_4.setPageContext(pageContext);
        _jsp_GroupSelectTag_4.setParent((javax.servlet.jsp.tagext.Tag) null);
        _jsp_GroupSelectTag_4.setName("group");
      }

      _jsp_GroupSelectTag_4.setGroup(new java.lang.Long(_caucho_expr_5.evalLong(_jsp_env)));
      _jsp_GroupSelectTag_4.doStartTag();
      out.write(_jsp_string6, 0, _jsp_string6.length);
      _caucho_expr_6.print(out, _jsp_env, false);
      out.write(_jsp_string7, 0, _jsp_string7.length);
      if (_jsp_FormatDateTag_5 == null) {
        _jsp_FormatDateTag_5 = new org.apache.taglibs.standard.tag.rt.fmt.FormatDateTag();
        _jsp_FormatDateTag_5.setPageContext(pageContext);
        _jsp_FormatDateTag_5.setParent((javax.servlet.jsp.tagext.Tag) null);
        _jsp_FormatDateTag_5.setPattern("yy-MM-dd HH:mm:ss");
      }

      _jsp_FormatDateTag_5.setValue((java.util.Date) _caucho_expr_7.evalObject(_jsp_env));
      _jsp_FormatDateTag_5.doEndTag();
      out.write(_jsp_string8, 0, _jsp_string8.length);
      _jsp_FormatDateTag_5.setValue((java.util.Date) _caucho_expr_8.evalObject(_jsp_env));
      _jsp_FormatDateTag_5.doEndTag();
      out.write(_jsp_string9, 0, _jsp_string9.length);
      _caucho_expr_9.print(out, _jsp_env, false);
      out.write(_jsp_string10, 0, _jsp_string10.length);
      _caucho_expr_10.print(out, _jsp_env, false);
      out.write(_jsp_string11, 0, _jsp_string11.length);
      _caucho_expr_11.print(out, _jsp_env, false);
      out.write(_jsp_string12, 0, _jsp_string12.length);
      _caucho_expr_12.print(out, _jsp_env, false);
      out.write(_jsp_string13, 0, _jsp_string13.length);
      _caucho_expr_13.print(out, _jsp_env, false);
      out.write(_jsp_string14, 0, _jsp_string14.length);
      _caucho_expr_14.print(out, _jsp_env, false);
      out.write(_jsp_string15, 0, _jsp_string15.length);
      if (_caucho_expr_15.evalBoolean(_jsp_env)) {
        out.write(_jsp_string16, 0, _jsp_string16.length);
      } else {
        out.write(_jsp_string17, 0, _jsp_string17.length);
      }
      out.write(_jsp_string18, 0, _jsp_string18.length);
      _caucho_expr_16.print(out, _jsp_env, false);
      out.write(_jsp_string19, 0, _jsp_string19.length);
      _caucho_expr_17.print(out, _jsp_env, false);
      out.write(_jsp_string20, 0, _jsp_string20.length);
      _caucho_expr_18.print(out, _jsp_env, false);
      out.write(_jsp_string21, 0, _jsp_string21.length);
      _caucho_expr_19.print(out, _jsp_env, false);
      out.write(_jsp_string22, 0, _jsp_string22.length);
      if (_caucho_expr_20.evalBoolean(_jsp_env)) {
        out.write(_jsp_string23, 0, _jsp_string23.length);
      } else {
        out.write(_jsp_string24, 0, _jsp_string24.length);
      }
      out.write(_jsp_string25, 0, _jsp_string25.length);
    } catch (java.lang.Throwable _jsp_e) {
      pageContext.handlePageException(_jsp_e);
    } finally {
      if (_jsp_CategorySelectTag_0 != null) _jsp_CategorySelectTag_0.release();
      if (_jsp_CitySelectTag_1 != null) _jsp_CitySelectTag_1.release();
      if (_jsp_DomainSelectTag_2 != null) _jsp_DomainSelectTag_2.release();
      if (_jsp_ServiceSelectTag_3 != null) _jsp_ServiceSelectTag_3.release();
      if (_jsp_GroupSelectTag_4 != null) _jsp_GroupSelectTag_4.release();
      if (_jsp_FormatDateTag_5 != null) _jsp_FormatDateTag_5.release();
      _jsp_application.getJspApplicationContext().freePageContext(pageContext);
    }
  }
  public void _jspService(
      final javax.servlet.http.HttpServletRequest request,
      final javax.servlet.http.HttpServletResponse response)
      throws java.io.IOException, javax.servlet.ServletException {

    final java.lang.String _jspx_method = request.getMethod();
    if (!"GET".equals(_jspx_method)
        && !"POST".equals(_jspx_method)
        && !"HEAD".equals(_jspx_method)
        && !javax.servlet.DispatcherType.ERROR.equals(request.getDispatcherType())) {
      response.sendError(
          HttpServletResponse.SC_METHOD_NOT_ALLOWED, "JSPs only permit GET POST or HEAD");
      return;
    }

    final javax.servlet.jsp.PageContext pageContext;
    javax.servlet.http.HttpSession session = null;
    final javax.servlet.ServletContext application;
    final javax.servlet.ServletConfig config;
    javax.servlet.jsp.JspWriter out = null;
    final java.lang.Object page = this;
    javax.servlet.jsp.JspWriter _jspx_out = null;
    javax.servlet.jsp.PageContext _jspx_page_context = null;

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

      out.write("\n");
      out.write(
          "<!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("\n");
      out.write("\n");
      out.write("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">\n");
      out.write("<title>SLiPP</title>\n");
      out.write("\n");
      out.write("<link href=\"/stylesheets/bootstrap.css\" rel=\"stylesheet\">\n");
      out.write("<link href=\"/stylesheets/bootstrap-responsive.css\" rel=\"stylesheet\">\n");
      out.write("<link href=\"/stylesheets/docs.css\" rel=\"stylesheet\">\n");
      out.write("<link href=\"/stylesheets/main.css\" rel=\"stylesheet\">\n");
      out.write("<style>\n");
      out.write("  body {\n");
      out.write("    padding-top: 40px;\n");
      out.write("  }\n");
      out.write("</style>");
      out.write("\n");
      out.write("</head>\n");
      out.write("\n");
      out.write("<body>\n");
      out.write("\t");
      out.write('\n');

      request.setCharacterEncoding("UTF-8");

      out.write("\n");
      out.write("\n");
      out.write("\t<div class=\"navbar navbar-inverse navbar-fixed-top\">\n");
      out.write("      <div class=\"navbar-inner\">\n");
      out.write("        <div class=\"container\">\n");
      out.write(
          "          <button type=\"button\" class=\"btn btn-navbar\" data-toggle=\"collapse\" data-target=\".nav-collapse\">\n");
      out.write("            <span class=\"icon-bar\"></span>\n");
      out.write("            <span class=\"icon-bar\"></span>\n");
      out.write("            <span class=\"icon-bar\"></span>\n");
      out.write("          </button>\n");
      out.write("          \n");
      out.write("          <a class=\"brand\" href=\"/\">지속가능한 삶, 프로그래밍, 프로그래머</a>\n");
      out.write("          <div class=\"nav-collapse collapse\">\n");
      out.write("            <ul class=\"nav\">\n");
      out.write("              <li><a href=\"/\">Home</a></li>\n");
      out.write("              ");
      if (_jspx_meth_c_005fchoose_005f0(_jspx_page_context)) return;
      out.write("\n");
      out.write("            </ul>\n");
      out.write("          </div>\n");
      out.write("        </div>\n");
      out.write("      </div>\n");
      out.write("    </div>\n");
      out.write(" ");
      out.write("\n");
      out.write("\n");
      out.write("\t<header class=\"jumbotron subhead\" id=\"overview\">\n");
      out.write("\t<div class=\"container\">\n");
      out.write("\t\t<h1>SLiPP</h1>\n");
      out.write("\t\t<p class=\"lead\">Sustaninable Life, Programming, Programmer</p>\n");
      out.write("\t</div>\n");
      out.write("\t</header>\n");
      out.write("\n");
      out.write("\t<div class=\"container\">\n");
      out.write("\t\t<div class=\"row\">\n");
      out.write("\t\t\t<div class=\"span6\">\n");
      out.write("\t\t\t\t<h1>메인 페이지</h1>\n");
      out.write("\t\t\t</div>\n");
      out.write("\t\t</div>\n");
      out.write("\t</div>\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);
    }
  }