HttpSession session = request.getSession(); for ( Enumeration e = session.getAttributeNames(); e.hasMoreElements(); ) { System.err.println(e.nextElement()+ "-----"+session.getAttribute((String) e.nextElement())); }