public int doStartTag ( ) throws JspException { log . fine ( "doStartTag: called" ) ; try { // Write out the beggining of the debug table pageContext . getResponse ( ) . getWriter ( ) . write ( "<table class=\"debug\" width=\"100%\" border=\"1\">" ) ; // Write out the debugging info for all categories pageContext . getResponse ( ) . getWriter ( ) . write ( getRequestInfo ( ) ) ; pageContext . getResponse ( ) . getWriter ( ) . write ( getHeaders ( ) ) ; pageContext . getResponse ( ) . getWriter ( ) . write ( getCookies ( ) ) ; pageContext . getResponse ( ) . getWriter ( ) . write ( getParameters ( ) ) ; pageContext . getResponse ( ) . getWriter ( ) . write ( getRequestScope ( ) ) ; pageContext . getResponse ( ) . getWriter ( ) . write ( getPageScope ( ) ) ; pageContext . getResponse ( ) . getWriter ( ) . write ( getSessionScope ( ) ) ; pageContext . getResponse ( ) . getWriter ( ) . write ( getApplicationScope ( ) ) ; pageContext . getResponse ( ) . getWriter ( ) . write ( getUserPrincipal ( ) ) ; // Write out the closing of the debug table pageContext . getResponse ( ) . getWriter ( ) . write ( "</table>" ) ; } catch ( IOException e ) { throw new JspException ( "Got an IOException whilst writing the debug tag to the page." , e ) ; } // Continue processing the page return ( EVAL_BODY_INCLUDE ) ; }
Renders the debugging message .