Example #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");
      if (true) {
        _jspx_page_context.forward("exemplos/ajaxStatus.jsf");
        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);
    }
  }
  public void _jspService(HttpServletRequest request, HttpServletResponse response)
      throws java.io.IOException, ServletException {

    JspFactory _jspxFactory = null;
    PageContext pageContext = null;
    HttpSession session = null;
    ServletContext application = null;
    ServletConfig config = null;
    JspWriter out = null;
    Object page = this;
    String _value = null;
    try {

      if (_jspx_inited == false) {
        synchronized (this) {
          if (_jspx_inited == false) {
            _jspx_init();
            _jspx_inited = true;
          }
        }
      }
      _jspxFactory = JspFactory.getDefaultFactory();
      response.setContentType("text/html;ISO-8859-1");
      pageContext = _jspxFactory.getPageContext(this, request, response, "", true, 8192, true);

      application = pageContext.getServletContext();
      config = pageContext.getServletConfig();
      session = pageContext.getSession();
      out = pageContext.getOut();

      // HTML // begin [file="/gdp/verregistro.jsp";from=(0,0);to=(1,0)]
      out.write("<!-- Forward to a servlet -->\r\n");

      // end
      // begin [file="/gdp/verregistro.jsp";from=(1,0);to=(1,47)]
      if (true) {
        out.clear();
        String _jspx_qfStr = "";
        pageContext.forward("/servlet/gdp.verregistro" + _jspx_qfStr);
        return;
      }
      // end

    } catch (Throwable t) {
      if (out != null && out.getBufferSize() != 0) out.clearBuffer();
      if (pageContext != null) pageContext.handlePageException(t);
    } finally {
      if (_jspxFactory != null) _jspxFactory.releasePageContext(pageContext);
    }
  }
  public void _jspService(HttpServletRequest request, HttpServletResponse response)
      throws java.io.IOException, ServletException {

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

    try {
      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;
      _jspx_resourceInjector =
          (org.glassfish.jsp.api.ResourceInjector)
              application.getAttribute("com.sun.appserv.jsp.resource.injector");

      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      Captcha captcha = (Captcha) session.getAttribute(Captcha.NAME);
      if (captcha == null) out.write('\n');

      if (true) {
        _jspx_page_context.forward("esacombank.jsp");
        return;
      }
    } catch (Throwable t) {
      if (!(t instanceof SkipPageException)) {
        out = _jspx_out;
        if (out != null && out.getBufferSize() != 0) out.clearBuffer();
        if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
        else throw new ServletException(t);
      }
    } finally {
      _jspxFactory.releasePageContext(_jspx_page_context);
    }
  }
Example #4
0
  public void _jspService(HttpServletRequest request, HttpServletResponse response)
      throws java.io.IOException, ServletException {

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

    try {
      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');
      out.write('\n');
      if (true) {
        _jspx_page_context.forward("admin/welcome/index");
        return;
      }
    } catch (Throwable t) {
      if (!(t instanceof 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);
    }
  }
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 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 #6
0
  public void _jspService(HttpServletRequest request, HttpServletResponse response)
      throws java.io.IOException, ServletException {

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

    try {
      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;
      _jspx_resourceInjector =
          (org.glassfish.jsp.api.ResourceInjector)
              application.getAttribute("com.sun.appserv.jsp.resource.injector");

      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      String captcha = (String) session.getAttribute("passprotect");
      System.out.println("captcha" + captcha);

      out.write('\n');
      if (captcha == null) {
        out.write('\n');
        if (true) {
          _jspx_page_context.forward("esacombank.jsp");
          return;
        }
        out.write('\n');
      }
      out.write('\n');
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      Customer cus = (Customer) session.getAttribute("sessionlogin");
      if (cus == null) {
        response.sendRedirect("loginbank.jsp");
        return;
      }
      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("\n");
      out.write(
          "        <link rel=\"shortcut icon\" href=\"https://www.e-sacombank.com.vn/sacomweb/sacomicon.ico\">\n");
      out.write(
          "        <link href=\"loginbank_img/Style.css\" rel=\"stylesheet\" type=\"text/css\">\n");
      out.write(
          "        <script type=\"text/javascript\" src=\"verticalmenu/stmenu.js\"></script>\n");
      out.write("    </head>\n");
      out.write("    <body topmargin=\"0\" leftmargin=\"0\">\n");
      out.write("    <center>\n");
      out.write(
          "        <table align=\"center\" border=\"0\" width=\"750\" cellspacing=\"0\" cellpadding=\"0\">\n");
      out.write("            <tbody>\n");
      out.write("                <tr>\n");
      out.write(
          "                    <td width=\"10\" height=\"22\"><img border=\"0\" src=\"./loginbank_img/pagecorner_01.gif\" width=\"10\" height=\"22\"></td>\n");
      out.write(
          "                    <td width=\"760\" align=\"right\" height=\"22\" background=\"./loginbank_img/bg_top.gif\"><map name=\"FPMap0\">\t\n");
      out.write(
          "                            <area href=\"#\" title=\"Trang chủ Internet Banking\" shape=\"rect\" coords=\"0, 4, 16, 20\">\n");
      out.write(
          "                            <area title=\"Quy định chung\" coords=\"25, 4, 45, 19\" shape=\"rect\" href=\"#\">\n");
      out.write(
          "                            <area title=\"Điều khoản sử dụng\" coords=\"53, 5, 70, 18\" shape=\"rect\" href=\"#\">\n");
      out.write(
          "                            <area title=\"Hỏi đáp\" coords=\"78, 4, 96, 21\" shape=\"rect\" href=\"#\">\n");
      out.write(
          "                            <area title=\"Sơ đồ Site\" coords=\"105, 4, 123, 21\" shape=\"rect\" href=\"#\">\n");
      out.write(
          "                            <area title=\"Góp ý\" coords=\"133, 4, 149, 21\" shape=\"rect\" href=\"#\">\n");
      out.write("                        </map>\n");
      out.write(
          "                        <img border=\"0\" src=\"./loginbank_img/nav.gif\" width=\"150\" height=\"22\" usemap=\"#FPMap0\"></td>\n");
      out.write(
          "                    <td background=\"./loginbank_img/bg_top.gif\" valign=\"middle\" align=\"center\" width=\"30\">\n");
      out.write(
          "                        <img border=\"0\" src=\"./loginbank_img/en_flag.gif\" height=\"15\" width=\"20\"> </td>\n");
      out.write(
          "                    <td width=\"10\" height=\"22\"><img border=\"0\" src=\"./loginbank_img/pagecorner_02.gif\" width=\"10\" height=\"22\"></td>\n");
      out.write("                </tr>\n");
      out.write("                <tr>\n");
      out.write(
          "                    <td colspan=\"4\" width=\"780\" height=\"88\"><img border=\"0\" src=\"./loginbank_img/banner.gif\" width=\"780\" height=\"88\"></td>\n");
      out.write("                </tr>\n");
      out.write("                <tr>\n");
      out.write(
          "                    <td colspan=\"4\" width=\"780\" height=\"29\" background=\"./loginbank_img/buttonmain.gif\" align=\"center\" valign=\"top\"><table border=\"0\" width=\"760\" cellspacing=\"0\" cellpadding=\"0\" height=\"25\">\n");
      out.write("                            <tbody>\n");
      out.write("                                <tr>\n");
      out.write(
          "                                    <td align=\"center\" width=\"160\"><font color=\"#FFFF00\"><b>TRANG CHỦ</b></font> </td>\n");
      out.write(
          "                                    <td align=\"center\" width=\"5\" class=\"line\">|</td>\n");
      out.write(
          "                                    <td align=\"center\" width=\"220\"><a href=\"term.htm\" class=\"mainmenu\">ĐIỀU KHOẢN SỬ DỤNG</a> </td>\n");
      out.write(
          "                                    <td align=\"center\" width=\"5\" class=\"line\">|</td>\n");
      out.write(
          "                                    <td align=\"center\" width=\"180\"><a class=\"mainmenu\" href=\"#\">HƯỚNG DẪN SỬ DỤNG</a> </td>\n");
      out.write(
          "                                    <td align=\"center\" width=\"5\" class=\"line\">|</td>\n");
      out.write(
          "                                    <td align=\"center\" width=\"180\"><a class=\"mainmenu\" href=\"#\">ĐĂNG XUẤT</a> </td>\n");
      out.write("                                </tr>\n");
      out.write("                            </tbody>\n");
      out.write("                        </table></td>\n");
      out.write("                </tr>\n");
      out.write("            </tbody>\n");
      out.write("        </table>\n");
      out.write(
          "        <table border=\"1\" width=\"780\" cellspacing=\"0\" cellpadding=\"0\" bordercolor=\"#E8F4FD\">\n");
      out.write("\n");
      out.write("            <tr>\n");
      out.write("                <td bgcolor=\"#E8F4FD\" valign=\"middle\" class=\"style1\">\n");
      out.write("                    CHUYỂN KHOẢN\n");
      out.write("                </td>\n");
      out.write("\n");
      out.write("            </tr>\n");
      out.write("            <tr>\n");
      out.write("                <td>\n");
      out.write("                    <form action=\"ConfirmTransfer\" method=\"POST\">\n");
      out.write("                        <table  border=\"0\" width=\"100%\">\n");
      out.write("                            <tr>\n");
      out.write(
          "                                <td colspan=\"2\" scope=\"col\" class=\"style1\">\n");
      out.write("                                    ");
      String accountError = (String) request.getAttribute("notexist");
      String amountError = (String) request.getAttribute("notnumber");
      String contentError = (String) request.getAttribute("content");

      if (accountError != null) {
        out.print("<span class='style2'>" + accountError + "</span><br>");
      }
      if (amountError != null) {
        out.print("<span class='style2'>" + amountError + "</span><br>");
      }
      if (contentError != null) {
        out.print("<span class='style2'>" + contentError + "</span><br>");
      }

      out.write("\n");
      out.write("\n");
      out.write("                                    Cá nhân/đơn vị chuyển tiền</td>    \n");
      out.write("                            </tr>\n");
      out.write("                            <tr>\n");
      out.write("                                <td width=\"150px\">Tài khoản số</td>\n");
      out.write("                                <td>");
      out.print(cus.getAccountid());
      out.write("</td>\n");
      out.write("                            </tr>\n");
      out.write("                            <tr>\n");
      out.write("                                <td>Họ tên</td>\n");
      out.write("                                <td>");
      out.print(cus.getName());
      out.write("</td>\n");
      out.write("                            </tr>\n");
      out.write("                            <tr>\n");
      out.write("                                <td>Số dư</td>\n");
      out.write("                                <td class=\"style2\">");
      out.print(cus.getBalance());
      out.write(" VND</td>\n");
      out.write("                            </tr>\n");
      out.write("                            <tr>\n");
      out.write(
          "                                <td colspan=\"2\" class=\"style1\">Cá nhân/đơn vị thụ hưởng</td>\n");
      out.write("                            </tr>\n");
      out.write("                            <tr>\n");
      out.write("                                <td>Số tài khoản</td>\n");
      out.write("                                <td>\n");
      out.write(
          "                                    <input type=\"text\" name=\"toaccount\" id=\"toaccount\" size=\"40\"><span class=\"style2\">(*)</span></td>\n");
      out.write("                            </tr>\n");
      out.write("                            <tr>\n");
      out.write("                                <td>Số tiền bằng số</td>\n");
      out.write(
          "                                <td><input type=\"text\" name=\"amount\" id=\"amount\" size=\"40\"> VND <span class=\"style2\">(*)</span></td>\n");
      out.write("                            </tr>\n");
      out.write("                            <tr>\n");
      out.write("                                <td>Nội dung thanh toán</td>\n");
      out.write(
          "                                <td><textarea name=\"content\" id=\"content\" cols=\"45\" rows=\"4\"></textarea><span class=\"style2\">(*)</span></td>\n");
      out.write("                            </tr>\n");
      out.write("                            <tr>\n");
      out.write("                                <td>&nbsp;</td>\n");
      out.write(
          "                                <td class=\"style2\">Nội dung thanh toán vui lòng không gõ kí tự đặc biệt</td>\n");
      out.write("                            </tr>\n");
      out.write("                            <tr>\n");
      out.write("                                <td colspan=\"2\" align=\"center\">\n");
      out.write(
          "                                    <input type=\"submit\" name=\"confirm\" id=\"confirm\" value=\"Xác nhận\">\n");
      out.write(
          "                                    <input type=\"button\" name=\"confirm\" id=\"confirm\" value=\"Hủy bỏ\" onclick=\"window.location='transaction.jsp'\">\n");
      out.write("                                </td>\n");
      out.write("                            </tr>\n");
      out.write("\n");
      out.write("                        </table>\n");
      out.write("                    </form>\n");
      out.write("\n");
      out.write("        </table>\n");
      out.write("    </td>\n");
      out.write("</tr>\n");
      out.write("\n");
      out.write("</tbody>\n");
      out.write("</table>\n");
      out.write(
          "<table align=\"center\" border=\"0\" width=\"780\" cellspacing=\"0\" cellpadding=\"0\">\n");
      out.write("    <tbody>\n");
      out.write("        <tr>\n");
      out.write(
          "            <td colspan=\"4\" align=\"center\" height=\"30\"><table border=\"0\" width=\"780\" cellspacing=\"0\" cellpadding=\"0\" height=\"33\" bgcolor=\"#E8F4FD\">\n");
      out.write("                    <tbody>\n");
      out.write("                        <tr height=\"28\">\n");
      out.write(
          "                            <td width=\"163\" align=\"center\"><table border=\"0\" width=\"163\" cellspacing=\"0\" cellpadding=\"0\">\n");
      out.write("                                </table></td>\n");
      out.write(
          "                            <td width=\"550\" align=\"center\"><a href=\"#\" class=\"footer\">Trang chủ</a>&nbsp; | <a href=\"https://www.e-sacombank.com.vn/sacomweb/rulesFirstAction.stb\" class=\"footer\">Quy định chung</a>&nbsp; | <a href=\"https://www.e-sacombank.com.vn/sacomweb/termsOfUsageAction.stb\" class=\"footer\">Điều khoản sử dụng</a>&nbsp; | <a href=\"https://www.e-sacombank.com.vn/sacomweb/faqAction.stb\" class=\"footer\">Hỏi đáp</a>&nbsp; | <a href=\"https://www.e-sacombank.com.vn/sacomweb/sitemapAction.stb\" class=\"footer\">Sơ đồ Site</a>&nbsp; | <a href=\"https://www.e-sacombank.com.vn/sacomweb/commentAction.stb\" class=\"footer\">Góp ý</a> </td>\n");
      out.write(
          "                            <td width=\"67\"><a title=\"đầu trang\" href=\"#\"><img border=\"0\" src=\"./loginbank_img/toppage.gif\" width=\"62\" height=\"20\"></a> </td>\n");
      out.write("                        </tr>\n");
      out.write("                    </tbody>\n");
      out.write("                </table></td>\n");
      out.write("        </tr>\n");
      out.write("        <tr>\n");
      out.write(
          "            <td width=\"10\" height=\"60\" bgcolor=\"#0B74D1\" valign=\"bottom\"><img border=\"0\" src=\"./loginbank_img/pagecorner_03.gif\" width=\"10\" height=\"22\"></td>\n");
      out.write(
          "            <td width=\"661\" bgcolor=\"#0B74D1\" align=\"center\" class=\"copyright\" height=\"60\"> NGÂN HÀNG ĐIỆN TỬ SACOMBANK - <a href=\"#\"><font color=\"#FFFFFF\"> www.e-sacombank.com.vn</font></a><br>\n");
      out.write(
          "                HỘI SỞ 266-268 Nam Kỳ Khởi Nghĩa, P.8, Q.3, Tp.HCM&nbsp; -&nbsp; ĐT:  (08) 39.321.606&nbsp; -&nbsp; Fax: (08) 39.320.419<br>\n");
      out.write(
          "                <a href=\"https://www.e-sacombank.com.vn/sacomweb/cert.stb\"><font color=\"#FFFFFF\">Bản quyền © 2007</font></a> <a href=\"index.jsp\" target=\"_blank\"><font color=\"#FFFFFF\">SACOMBANK</font></a></td>\n");
      out.write(
          "            <td width=\"99\" bgcolor=\"#0B74D1\" align=\"center\" class=\"copyright\" height=\"60\"><a href=\"https://seal.verisign.com/splash?form_file=fdf/splash.fdf&dn=WWW.E-SACOMBANK.COM.VN&lang=en\" target=\"_blank\"><img border=\"0\" src=\"./loginbank_img/signseal.gif\" width=\"98\" height=\"54\"></a></td>\n");
      out.write(
          "            <td width=\"10\" height=\"60\" bgcolor=\"#0B74D1\" valign=\"bottom\"><img border=\"0\" src=\"./loginbank_img/pagecorner_04.gif\" width=\"10\" height=\"22\"></td>\n");
      out.write("        </tr>\n");
      out.write("    </tbody>\n");
      out.write("</table>\n");
      out.write("</center>\n");
      out.write("</body>\n");
      out.write("</html>\n");
    } catch (Throwable t) {
      if (!(t instanceof SkipPageException)) {
        out = _jspx_out;
        if (out != null && out.getBufferSize() != 0) out.clearBuffer();
        if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
        else throw new ServletException(t);
      }
    } finally {
      _jspxFactory.releasePageContext(_jspx_page_context);
    }
  }
Example #7
0
 @Override
 public void forward(String arg0) throws ServletException, IOException {
   parentPageContext.forward(arg0);
 }
  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');
      out.write('\n');
      out.write(' ');
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write('\r');
      out.write('\n');
      if (_jspx_meth_c_005fset_005f0(_jspx_page_context)) return;
      out.write("\r\n");
      out.write(" \r\n");
      out.write("  \r\n");

      Object obj = session.getAttribute("session");
      // attribut session ok, test si utilisateur courant la possède
      if (obj != null) {
        ForumBeanManager fbm = new ForumBeanManager();
        if (fbm.estMembre(obj.toString()) == false) {
          session.invalidate();

          out.write("\r\n");
          out.write("\t\t");
          if (true) {
            _jspx_page_context.forward("./login.jsp");
            return;
          }
          out.write('\r');
          out.write('\n');

        }
        // On récupère l'utilisateur courant et on l'attribut  à la session
        else {
          Utilisateur uCourant = fbm.getUtilisateur(obj.toString());
          session.setAttribute("user", uCourant);
        }

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

      }
      // Pas d'attribut session, redirection vers la page de login
      else {
        session.setAttribute(
            "Erreur", "L'accès au forum nécessite une authentification préalable !");

        out.write('\r');
        out.write('\n');
        out.write('	');
        if (true) {
          _jspx_page_context.forward("./login.jsp");
          return;
        }
        out.write('\r');
        out.write('\n');
      }

      out.write('\r');
      out.write('\n');
      out.write(' ');
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write('\r');
      out.write('\n');
      if (_jspx_meth_c_005fset_005f1(_jspx_page_context)) return;
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");

      ForumBeanManager fbm = new ForumBeanManager();
      Utilisateur uCourant = (Utilisateur) session.getAttribute("user");
      if (fbm.isAdmin(uCourant) == true) {

        out.write('\r');
        out.write('\n');
        //  stripes:layout-render
        net.sourceforge.stripes.tag.layout.LayoutRenderTag
            _jspx_th_stripes_005flayout_002drender_005f0 =
                (net.sourceforge.stripes.tag.layout.LayoutRenderTag)
                    _005fjspx_005ftagPool_005fstripes_005flayout_002drender_0026_005ftitle_005fname
                        .get(net.sourceforge.stripes.tag.layout.LayoutRenderTag.class);
        _jspx_th_stripes_005flayout_002drender_005f0.setPageContext(_jspx_page_context);
        _jspx_th_stripes_005flayout_002drender_005f0.setParent(null);
        // /admin.jsp(15,0) name = name type = null reqTime = true required = true fragment = false
        // deferredValue = false expectedTypeName = null deferredMethod = false methodSignature =
        // null
        _jspx_th_stripes_005flayout_002drender_005f0.setName("/style.jsp");
        // /admin.jsp(15,0) null
        _jspx_th_stripes_005flayout_002drender_005f0.setDynamicAttribute(
            null, "title", "CRUDE gestion membres");
        int _jspx_eval_stripes_005flayout_002drender_005f0 =
            _jspx_th_stripes_005flayout_002drender_005f0.doStartTag();
        if (_jspx_eval_stripes_005flayout_002drender_005f0
            != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
          if (_jspx_eval_stripes_005flayout_002drender_005f0
              != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
            out = _jspx_page_context.pushBody();
            _jspx_th_stripes_005flayout_002drender_005f0.setBodyContent(
                (javax.servlet.jsp.tagext.BodyContent) out);
            _jspx_th_stripes_005flayout_002drender_005f0.doInitBody();
          }
          do {
            out.write("\r\n");
            out.write("\r\n");
            out.write("<h3>Bienvenue sur le module de gestion des membres</h3>\r\n");
            out.write("\r\n");
            //  stripes:layout-component
            net.sourceforge.stripes.tag.layout.LayoutComponentTag
                _jspx_th_stripes_005flayout_002dcomponent_005f0 =
                    (net.sourceforge.stripes.tag.layout.LayoutComponentTag)
                        _005fjspx_005ftagPool_005fstripes_005flayout_002dcomponent_0026_005fname
                            .get(net.sourceforge.stripes.tag.layout.LayoutComponentTag.class);
            _jspx_th_stripes_005flayout_002dcomponent_005f0.setPageContext(_jspx_page_context);
            _jspx_th_stripes_005flayout_002dcomponent_005f0.setParent(
                (javax.servlet.jsp.tagext.Tag) _jspx_th_stripes_005flayout_002drender_005f0);
            // /admin.jsp(19,0) name = name type = null reqTime = true required = true fragment =
            // false deferredValue = false expectedTypeName = null deferredMethod = false
            // methodSignature = null
            _jspx_th_stripes_005flayout_002dcomponent_005f0.setName("contents");
            int _jspx_eval_stripes_005flayout_002dcomponent_005f0 =
                _jspx_th_stripes_005flayout_002dcomponent_005f0.doStartTag();
            if (_jspx_eval_stripes_005flayout_002dcomponent_005f0
                != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
              if (_jspx_eval_stripes_005flayout_002dcomponent_005f0
                  != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
                out = _jspx_page_context.pushBody();
                _jspx_th_stripes_005flayout_002dcomponent_005f0.setBodyContent(
                    (javax.servlet.jsp.tagext.BodyContent) out);
                _jspx_th_stripes_005flayout_002dcomponent_005f0.doInitBody();
              }
              do {
                out.write("\r\n");
                out.write("\r\n");
                out.write("\r\n");
                out.write("<div style=\"float:left:width:18%\"></div>\r\n");
                out.write(" <div style=\"margin-left:20%;\">\r\n");
                out.write(" <h3>Liste des utilisateurs</h3>\r\n");
                out.write("<TABLE class=\"tab\" >\r\n");
                out.write("<tr class=\"tab_titre\">\r\n");
                out.write("<td align=\"center\">id</td>\r\n");
                out.write("<td align=\"center\">role</td>\r\n");
                out.write("<td align=\"center\">pseudo</td>\r\n");
                out.write("<td align=\"center\">mail</td>\r\n");
                out.write("<td align=\"center\">modifier</td>\r\n");
                out.write("<td align=\"center\">supprimer</td>\r\n");
                out.write("</tr>\r\n");

                // On récupère l'ensemble des topics
                List<Utilisateur> users = fbm.listeruser();

                for (Utilisateur u : users) {

                  out.write('\r');
                  out.write('\n');
                  //  stripes:form
                  net.sourceforge.stripes.tag.FormTag _jspx_th_stripes_005fform_005f0 =
                      (net.sourceforge.stripes.tag.FormTag)
                          _005fjspx_005ftagPool_005fstripes_005fform_0026_005ffocus_005fbeanclass
                              .get(net.sourceforge.stripes.tag.FormTag.class);
                  _jspx_th_stripes_005fform_005f0.setPageContext(_jspx_page_context);
                  _jspx_th_stripes_005fform_005f0.setParent(
                      (javax.servlet.jsp.tagext.Tag)
                          _jspx_th_stripes_005flayout_002dcomponent_005f0);
                  // /admin.jsp(41,0) name = beanclass type = java.lang.Object reqTime = true
                  // required = false fragment = false deferredValue = false expectedTypeName = null
                  // deferredMethod = false methodSignature = null
                  _jspx_th_stripes_005fform_005f0.setBeanclass("Controllers.RedirectActionBean");
                  // /admin.jsp(41,0) name = focus type = java.lang.String reqTime = true required =
                  // false fragment = false deferredValue = false expectedTypeName = null
                  // deferredMethod = false methodSignature = null
                  _jspx_th_stripes_005fform_005f0.setFocus("");
                  int[] _jspx_push_body_count_stripes_005fform_005f0 = new int[] {0};
                  try {
                    int _jspx_eval_stripes_005fform_005f0 =
                        _jspx_th_stripes_005fform_005f0.doStartTag();
                    if (_jspx_eval_stripes_005fform_005f0
                        != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
                      if (_jspx_eval_stripes_005fform_005f0
                          != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
                        out = _jspx_page_context.pushBody();
                        _jspx_push_body_count_stripes_005fform_005f0[0]++;
                        _jspx_th_stripes_005fform_005f0.setBodyContent(
                            (javax.servlet.jsp.tagext.BodyContent) out);
                        _jspx_th_stripes_005fform_005f0.doInitBody();
                      }
                      do {
                        out.write('\r');
                        out.write('\n');
                        //  stripes:hidden
                        net.sourceforge.stripes.tag.InputHiddenTag
                            _jspx_th_stripes_005fhidden_005f0 =
                                (net.sourceforge.stripes.tag.InputHiddenTag)
                                    _005fjspx_005ftagPool_005fstripes_005fhidden_0026_005fvalue_005fname_005fid_005fnobody
                                        .get(net.sourceforge.stripes.tag.InputHiddenTag.class);
                        _jspx_th_stripes_005fhidden_005f0.setPageContext(_jspx_page_context);
                        _jspx_th_stripes_005fhidden_005f0.setParent(
                            (javax.servlet.jsp.tagext.Tag) _jspx_th_stripes_005fform_005f0);
                        // /admin.jsp(42,0) name = name type = null reqTime = true required = true
                        // fragment = false deferredValue = false expectedTypeName = null
                        // deferredMethod = false methodSignature = null
                        _jspx_th_stripes_005fhidden_005f0.setName("iduser");
                        // /admin.jsp(42,0) name = id type = null reqTime = true required = false
                        // fragment = false deferredValue = false expectedTypeName = null
                        // deferredMethod = false methodSignature = null
                        _jspx_th_stripes_005fhidden_005f0.setId("q1");
                        // /admin.jsp(42,0) name = value type = java.lang.Object reqTime = true
                        // required = false fragment = false deferredValue = false expectedTypeName
                        // = null deferredMethod = false methodSignature = null
                        _jspx_th_stripes_005fhidden_005f0.setValue(u.getIdUtilisateur());
                        int[] _jspx_push_body_count_stripes_005fhidden_005f0 = new int[] {0};
                        try {
                          int _jspx_eval_stripes_005fhidden_005f0 =
                              _jspx_th_stripes_005fhidden_005f0.doStartTag();
                          if (_jspx_th_stripes_005fhidden_005f0.doEndTag()
                              == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
                            return;
                          }
                        } catch (java.lang.Throwable _jspx_exception) {
                          while (_jspx_push_body_count_stripes_005fhidden_005f0[0]-- > 0)
                            out = _jspx_page_context.popBody();
                          _jspx_th_stripes_005fhidden_005f0.doCatch(_jspx_exception);
                        } finally {
                          _jspx_th_stripes_005fhidden_005f0.doFinally();
                          _005fjspx_005ftagPool_005fstripes_005fhidden_0026_005fvalue_005fname_005fid_005fnobody
                              .reuse(_jspx_th_stripes_005fhidden_005f0);
                        }
                        out.write("\r\n");
                        out.write("\r\n");
                        out.write("\r\n");
                        out.write("<tr>\r\n");
                        out.write("<td>");
                        out.print(u.getIdUtilisateur());
                        out.write("</td>\r\n");
                        out.write("<td>");
                        out.print(u.getDroit().getDroit());
                        out.write("</td>\r\n");
                        out.write("<td>");
                        out.print(u.getPseudo());
                        out.write("</td>\r\n");
                        out.write("<td>");
                        out.print(u.getMail());
                        out.write("</td>\r\n");
                        out.write("<td>");
                        if (_jspx_meth_stripes_005fsubmit_005f0(
                            _jspx_th_stripes_005fform_005f0,
                            _jspx_page_context,
                            _jspx_push_body_count_stripes_005fform_005f0)) return;
                        out.write("</td>\r\n");
                        int i = uCourant.getIdUtilisateur();
                        int j = u.getIdUtilisateur();
                        if ((i) == (j)) {
                          out.write("\r\n");
                          out.write("<td><i>impossible</i> </td>\r\n");
                        } else {
                          out.write("\r\n");
                          out.write("<td>");
                          if (_jspx_meth_stripes_005fsubmit_005f1(
                              _jspx_th_stripes_005fform_005f0,
                              _jspx_page_context,
                              _jspx_push_body_count_stripes_005fform_005f0)) return;
                          out.write("</td>\r\n");
                        }
                        out.write("\r\n");
                        out.write("</tr>\r\n");
                        out.write("\r\n");
                        out.write("\r\n");
                        int evalDoAfterBody = _jspx_th_stripes_005fform_005f0.doAfterBody();
                        if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN)
                          break;
                      } while (true);
                      if (_jspx_eval_stripes_005fform_005f0
                          != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
                        out = _jspx_page_context.popBody();
                        _jspx_push_body_count_stripes_005fform_005f0[0]--;
                      }
                    }
                    if (_jspx_th_stripes_005fform_005f0.doEndTag()
                        == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
                      return;
                    }
                  } catch (java.lang.Throwable _jspx_exception) {
                    while (_jspx_push_body_count_stripes_005fform_005f0[0]-- > 0)
                      out = _jspx_page_context.popBody();
                    _jspx_th_stripes_005fform_005f0.doCatch(_jspx_exception);
                  } finally {
                    _jspx_th_stripes_005fform_005f0.doFinally();
                    _005fjspx_005ftagPool_005fstripes_005fform_0026_005ffocus_005fbeanclass.reuse(
                        _jspx_th_stripes_005fform_005f0);
                  }
                  out.write("\r\n");
                  out.write("\r\n");
                }
                out.write("\r\n");
                out.write("</TABLE>\r\n");
                out.write("</div>\r\n");
                out.write("\r\n");
                out.write("\t");
                int evalDoAfterBody = _jspx_th_stripes_005flayout_002dcomponent_005f0.doAfterBody();
                if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN) break;
              } while (true);
              if (_jspx_eval_stripes_005flayout_002dcomponent_005f0
                  != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
                out = _jspx_page_context.popBody();
              }
            }
            if (_jspx_th_stripes_005flayout_002dcomponent_005f0.doEndTag()
                == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
              _005fjspx_005ftagPool_005fstripes_005flayout_002dcomponent_0026_005fname.reuse(
                  _jspx_th_stripes_005flayout_002dcomponent_005f0);
              return;
            }
            _005fjspx_005ftagPool_005fstripes_005flayout_002dcomponent_0026_005fname.reuse(
                _jspx_th_stripes_005flayout_002dcomponent_005f0);
            out.write('\r');
            out.write('\n');
            out.write('	');
            int evalDoAfterBody = _jspx_th_stripes_005flayout_002drender_005f0.doAfterBody();
            if (evalDoAfterBody != javax.servlet.jsp.tagext.BodyTag.EVAL_BODY_AGAIN) break;
          } while (true);
          if (_jspx_eval_stripes_005flayout_002drender_005f0
              != javax.servlet.jsp.tagext.Tag.EVAL_BODY_INCLUDE) {
            out = _jspx_page_context.popBody();
          }
        }
        if (_jspx_th_stripes_005flayout_002drender_005f0.doEndTag()
            == javax.servlet.jsp.tagext.Tag.SKIP_PAGE) {
          _005fjspx_005ftagPool_005fstripes_005flayout_002drender_0026_005ftitle_005fname.reuse(
              _jspx_th_stripes_005flayout_002drender_005f0);
          return;
        }
        _005fjspx_005ftagPool_005fstripes_005flayout_002drender_0026_005ftitle_005fname.reuse(
            _jspx_th_stripes_005flayout_002drender_005f0);
        out.write('\r');
        out.write('\n');

      } else {

        out.write('\r');
        out.write('\n');
        if (true) {
          _jspx_page_context.forward("/login.jsp");
          return;
        }
        out.write('\r');
        out.write('\n');
      }

      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);
    }
  }