Hi every one can any help me ...
i want to list all the data from data base and display to jsp table
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
    // TODO Auto-generated method stub
    HttpSession session = request.getSession(true);
    try {
        Connection con=DataConnection.getconnection();
        PreparedStatement pst;
        response.setContentType("text/html");
        PrintWriter out = response.getWriter();
        out.println("<html><body>");
        pst = con.prepareStatement("select * from [user]");
        ResultSet rs = pst.executeQuery();
        List<User> ee = new ArrayList<User>();
        while (rs.next()) {
            User e = new User();
            e.setName(rs.getString(1));
            e.setUserName(rs.getString(2));
            e.setPass(rs.getString(3));
            ee.add(e);
        }
        request.getSession().setAttribute("ee", ee);
        RequestDispatcher rd = getServletContext().getRequestDispatcher("/user.jsp");
        rd.forward(request, response);
    } catch (Throwable theException) {
        System.out.println(theException);
    }
}
this my code it contain the array list and passing it trought request.getSession().setAttribute("ee", ee);
now how to acess this value in jsp and it should display in the from of table can any give me the sample code for this
 
     
     
    