getAttributeNames()
返回值:request 物件所設定的所有屬性名字的列舉物件。<% request.setAttribute("name","zs"); //設定name屬性 request.setAttribute("age","23"); //設定age屬性 request.setAttribute("sex","男"); //設定sex屬性 Enumeration e = request.getAttributeNames(); while(e.hasMoreElements()){ out.println(e.nextElement()+"<br>"); } %>