Guest User

Untitled

a guest
May 21st, 2020
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.48 KB | None | 0 0
  1.  protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
  2.         try {
  3.             ArrayList<Pacient> allPacients = modelData.getAllPacients();
  4.             req.setAttribute("allPacients", allPacients);
  5.         } catch (SQLException e) {
  6.             e.printStackTrace();
  7.         }
  8.         RequestDispatcher requestDispatcher = req.getRequestDispatcher("/view/pacientList.jsp");
  9.         requestDispatcher.forward(req, resp);
  10.  
  11.     }
Advertisement
Add Comment
Please, Sign In to add comment