RE: Does anyone have something to dump a sessions contents in a JSP?

2002-07-10 Thread Tero P Paananen
This would be handy if someone had code that would find and dump all the contents in a session in a JSP page... This is not by any means covering all potential cases and has some problems, but I'm using the following while developing my JSP pages: % java.util.Enumeration

RE: Does anyone have something to dump a sessions contents in a JSP?

2002-07-10 Thread Fabien Modoux
If you are using Log4j, the Log Tag library (http://jakarta.apache.org/taglibs/doc/log-doc/intro.html) from the Jakarta Taglibs project has dump tag that displays all variables in the specified scope (http://jakarta.apache.org/taglibs/doc/log-doc/index.html#dump) Hope this helps, Fabien

RE: Does anyone have something to dump a sessions contents in a JSP?

2002-07-10 Thread Bartley, Chris P
I include the attached file immediately before the closing /body tag, like this: ... jsp:include page=snoop.jsp flush=true/ /body /html It displays all request parameters and the contents of the request, session, and application scopes. It's one giant ugly hack of a scriptlet, but

Re: Does anyone have something to dump a sessions contents in a JSP?

2002-07-10 Thread Kevin Henrikson
Or just use the logging tags. 4 quick lines of code: %@ taglib uri=http://jakarta.apache.org/taglibs/log-1.0; prefix=log % PAGE:log:dump scope=page / REQUEST:log:dump scope=request / SESSION:log:dump scope=session / APPLICATION:log:dump scope=application / -kevin Tero P Paananen [EMAIL