Prentice Hall and Sun Microsystems. Personal use only; do not redistribute.
14.8 Using Nested Tags
349
tion time. In principle, you could instruct the system to do some validation at
page translation time by using a
TagExtraInfo
class. This class has a
get
VariableInfo
method that you can use to check that attributes exist and
where they are used. Once you have defined a subclass of
TagExtraInfo
,
you associate it with your tag in the tag library descriptor file by means of the
teiclass
element, which is used just like
tagclass
. In practice, however,
TagExtraInfo
is poorly documented and cumbersome to use.
Listing 14.27 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/.
if
coreservlets.tags.IfTag
if/condition/then/else tag.
JSP
condition
coreservlets.tags.IfConditionTag
condition part of if/condition/then/else tag.
JSP
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