how to pass the array list from servelet to jsp table?
<p>Hi every one can any help me ...</p>

<p>i want to list all the data from data base and display to jsp table</p>

<pre><code>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("&lt;html&gt;&lt;body&gt;");
        pst = con.prepareStatement("select * from [user]");
        ResultSet rs = pst.executeQuery();
        List&lt;User&gt; ee = new ArrayList&lt;User&gt;();

        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);
    }
}
</code></pre>

<p>this my code it contain the array list and passing it trought  request.getSession().setAttribute("ee", ee); </p>

<p>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</p>