Prentice Hall and Sun Microsystems. Personal use only; do not redistribute.
336
Chapter 14 Creating Custom JSP Tag Libraries
Listing 14.17 csajsp taglib.tld
PUBLIC " //Sun Microsystems, Inc.//DTD JSP Tag Library 1.1//EN"
"http://java.sun.com/j2ee/dtds/web jsptaglibrary_1_1.dtd">
"http://java.sun.com/j2ee/dtds/jsptaglibrary_1_2.dtd"
>
1.0
1.1
csajsp
A tag library from Core Servlets and JavaServer Pages,
http://www.coreservlets.com/.
filter
coreservlets.tags.FilterTag
Replaces HTML specific characters in body.
JSP
The JSP File
Listing 14.18 shows a page that uses a table to show some sample HTML and
its result. Creating this table would be tedious in regular HTML since the
table cell that shows the original HTML would have to change all the
<
and
>
characters to
<
and
>
. Doing so is particularly onerous during devel
opment when the sample HTML is frequently changing. Use of the
jsp:filter>
tag greatly simplifies the process, as Listing 14.18 illustrates.
Figure 14 7 shows the result.
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