该方法获取所有 application 对象的属性名。
语法:
getAttributeNames()
返回值:
遍历 application 对象中的所有属性名,显示在页面中,关键代码如下:
<%
Enumeration names = application.getAttributeNames();
while(names.hasMoreElements()){
out.println(names.nextElement()+"<br>");
}
%>
更多...
加载中...