深度理解session获得session的键值对

xiaoxiao2025-12-30  6

http://www.yuanma.org/data/2006/1128/article_1872.htm

 

Enumeration e = session.getAttributeNames(); while (e.hasMoreElements()) { String name = e.nextElement().toString(); Object value = session.getAttribute(name); out.println("<b>" + name + "</b> = " + value + "<br>\n"); }
转载请注明原文地址: https://www.6miu.com/read-5041755.html

最新回复(0)