Name
DebugBean
Synopsis
Class Name: |
com.ora.jsp.util.DebugBean |
Extends: |
None |
Implements: |
None |
Description
The DebugBean
class is a bean that can be used to
extract debug information from a JSP PageContext
.
The debug info is sent to the browser, System.out
,
and the servlet log file, depending on the value of the
debug
request parameter sent with the request for
the JSP page: resp
, stdout
, and
log
, respectively. These parameter values can be
combined to get the information directed to multiple targets. The
bean properties are described in Table 3.23.
Table C-23. com.ora.jsp.util.DebugBean Properties
Property Name |
Java Type |
Access |
Description |
---|---|---|---|
applicationScope |
String |
read |
A string, formatted as a table, with the names and values of all application scope variables. |
cookies |
String |
read |
A string, formatted as a table, with the names and values of all cookies received with the request. |
elapsedTime |
String |
read |
A string with the number of milliseconds elapsed since the bean was created or this property was last read. |
headers |
String |
read |
A string, formatted as a table, with the names and values of all headers received with the request. |
pageContext |
javax.servlet.jsp.PageContext |
write |
Mandatory. Must be set for the bean to find the value of its other properties. |
pageScope |
String |
read |
A string, formatted as a table, with the names and values of all page scope variables. |
parameters |
String |
read |
A string, formatted as a table, with the names and values of all parameters ... |
Get Java Server Pages now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.