**EditDeleteServlet** - which this is my servlet of listing all the students. Here is the code:

```
Student sbean = new Student();
            EditDeleteDAO sDAO = new EditDeleteDAO();

            String command = request.getParameter("command");
            PrintWriter out = response.getWriter();
            out.print(command);

            try{
                if(command.equals("Submit")) 
                {
                    String id=request.getParameter("id");
                    String studName=request.getParameter("studName");
                    String icNum=request.getParameter("icNum");
                    String matrixID=request.getParameter("matrixID");
                    String contactNum=request.getParameter("contactNum");
                    String email=request.getParameter("email");
                    String course=request.getParameter("course");
                    sbean.setId(Integer.parseInt(id));
                    sbean.setStudName(studName);
                    sbean.setICNum(icNum);
                    sbean.setMatrixID(Integer.parseInt(matrixID));
                    sbean.setContactNum(Integer.parseInt(contactNum));
                    sbean.setEmail(email);
                    sbean.setCourse(course);
                    EditDeleteDAO.insertDetails(sbean);
                    List<Student> list = sDAO.getAllDetails();
                    if(list!=null)
                    {
                        request.setAttribute("list",list);
                        RequestDispatcher rd = request.getRequestDispatcher("/studListing.jsp");
                        rd.forward(request, response);
                    }
                }

```

**studListing.jsp** - this is my jsp page where I want to display my data here 

 list = request.getAttribute("list"); %>