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

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");   
                  }

你可能感兴趣的:(session)