# Enumeration e=(Enumeration)getServletContext().getAttributeNames();
# out.println("<html><body>");
# out.println(e);
# out.println("</body></html>");
Returns:
an Enumeration of
String objects specifying the names of all the objects bound to this session.
so you have to print value of your Enumeration object use again for loop and print value.