send data from servlet to hjsp code example
Example: send data from servlet to hjsp
Student student = new Student();
student.setId("1");
student.setName("Hussein");
student.setAge("25");
request.setAttribute("student", student);
request.getRequestDispatcher("home.jsp").forward(request, response);