/* if user press the Update Reservation Button */
if (updateReservation != null) {
/* all fields must be filled && and reservation id must match with the one from DB*/
if (reservationId.isEmpty() || aDate.isEmpty() || rDate.isEmpty()
|| dao.ofy().find(HotelReservation.class, reservationId) == null) {
request.setAttribute("errorMessage", "<font size=\"2\" "
+ "face=\"arial\" color=\"red\">"
+ "Invalid Reservation id! <br/>"
+ "</font>");
RequestDispatcher rd = request.getRequestDispatcher("reservations.jsp");