Prentice Hall and Sun Microsystems. Personal use only; do not redistribute.
332
Chapter 14 Creating Custom JSP Tag Libraries
The JSP File
Listing 14.15 shows a page that encloses debugging information between
and
. Figures 14 5 and 14 6 show the
normal result and the result when a request time
debug
parameter is sup
plied, respectively.
Listing 14.15 DebugExample.jsp
Using the Debug Tag
HREF="JSP Styles.css"
TYPE="text/css">
Using the Debug Tag
<%@ taglib uri="csajsp taglib.tld" prefix="csajsp" %>
Top of regular page. Blah, blah, blah. Yadda, yadda, yadda.
Debug:
Current time: <%= new java.util.Date() %>
Requesting hostname: <%= request.getRemoteHost() %>
Session ID: <%= session.getId() %>
Bottom of regular page. Blah, blah, blah. Yadda, yadda, yadda.
Second edition of this book: www.coreservlets.com; Sequel: www.moreservlets.com.
Servlet and JSP training courses by book's author: courses.coreservlets.com.
footer
Our partners:
PHP: Hypertext Preprocessor Best Web Hosting
Java Web Hosting
Jsp Web Hosting
Cheapest Web Hosting
Visionwebhosting.net Business web hosting division of Web
Design Plus. All rights reserved