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
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
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
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
4 matches
Mail list logo