src/java/Controllers/HomeController.java
/**
     * 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
     */
Handles the HTTP POST 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
Handles the HTTP POST 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
    {
        String checkIn = request.getParameter("check_in");
        String checkOut = request.getParameter("check_out");
        String adults = request.getParameter("adults");
        String children = request.getParameter("children");
        String rooms = request.getParameter("rooms");
        String hotelName = request.getParameter("hotel_name");
        /*
        String[] keys = {"email", "password"};
        String[] values = {email, password};
        this.hotel = this.hotelDAO.getBy(keys, values);
        */
        request.setAttribute("hotels", "Enter a valid email and password!");
        RequestDispatcher rd=request.getRequestDispatcher("views/login.jsp");  
        rd.forward(request, response);
    }
@ Override protected void doPost ( HttpServletRequest request , HttpServletResponse response ) throws ServletException , IOException { String checkIn = request . getParameter ( "check_in" ) ; String checkOut = request . getParameter ( "check_out" ) ; String adults = request . getParameter ( "adults" ) ; String children = request . getParameter ( "children" ) ; String rooms = request . getParameter ( "rooms" ) ; String hotelName = request . getParameter ( "hotel_name" ) ; /*
        String[] keys = {"email", "password"};
        String[] values = {email, password};
        this.hotel = this.hotelDAO.getBy(keys, values);
        */ request . setAttribute ( "hotels" , "Enter a valid email and password!" ) ; RequestDispatcher rd = request . getRequestDispatcher ( "views/login.jsp" ) ; rd . forward ( request , response ) ; }
Handles the HTTP <code>POST</code> method.
Handles the HTTP <code > POST< / code > method .