Prentice Hall and Sun Microsystems. Personal use only; do not redistribute.
328
Chapter 14 Creating Custom JSP Tag Libraries
Listing 14.11 csajsp taglib.tld (continued)
width
false
The JSP File
Listing 14.12 shows a document that uses the
heading
tag just defined. Since
the
bgColor
attribute was defined to be required, all uses of the tag include
it. Figure 14 4 shows the result.
Listing 14.12 HeadingExample.jsp
Some Tag Generated Headings
<%@ taglib uri="csajsp taglib.tld" prefix="csajsp" %>
Default Heading
White on Black Heading
Large Bordered Heading
Heading with Full Width Background
fontList="Brush Script MT, Times, serif">
Heading with Non Standard Font
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