/** * Handles the HTTP <code>POST</code> method. * * @param request servlet request * @param response servlet response * @throws ServletException if a servlet-specific error occurs * @throws IOException if an I/O error occurs */ @Override protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { // Create ReadQuery helper object ReadQuery rq = new ReadQuery(); // Get the HTML rq.doRead(); String table = rq.getHTMLtable(); // Pass execution control and table to read.jsp request.setAttribute("table", table); String url = "/read.jsp"; RequestDispatcher dispatcher = request.getRequestDispatcher(url); dispatcher.forward(request, response); }