tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "C Cayetano" <apa...@ccayetano.com>
Subject RE: way to get list of all session variables and values?
Date Thu, 07 Feb 2002 19:43:07 GMT
That worked great! Thanks.

> -----Original Message-----
> From: August Detlefsen [mailto:augustd123@yahoo.com]
> Sent: Thursday, February 07, 2002 10:40 AM
> To: Tomcat Users List
> Subject: Re: way to get list of all session variables and values?
> 
> 
> Try this in your JSP: 
> 
> <%
>         if (true) {  //turn output on and off
> 
>                 Enumeration e = session.getAttributeNames();
>                 while (e.hasMoreElements()) {
>                         String name  = (String)e.nextElement();
>                         Object value = session.getAttribute(name);
> %>
> <B><%= name %> = </B><%= value %><BR>
> <%
>                 }
>         }
> %>
> 
> 
> --- C Cayetano <apache@ccayetano.com> wrote:
> > All,
> > 
> > Is there a wat to get a listing of all session variables and their
> > values?
> > 
> > Thanks
> > 
> > 
> > 
> > --
> > To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
> > For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
> > Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>
> > 
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Send FREE Valentine eCards with Yahoo! Greetings!
> http://greetings.yahoo.com
> 
> --
> To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
> For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
> Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>

--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>


Mime
View raw message