Prentice Hall and Sun Microsystems. Personal use only; do not redistribute.
14.2 Defining a Basic Tag
317
2.
tagclass
, which gives the fully qualified class name of the tag 
handler. In this case, I use
coreservlets.tags.SimplePrimeTag
3.
info
, which gives a short description. Here, I use
Outputs a random 50 digit prime.
4.
bodycontent
, which should have the value 
EMPTY
 for tags with 
out bodies. Tags with normal bodies that might be interpreted 
as normal JSP use a value of 
JSP
, and the rare tags whose han 
dlers completely process the body themselves use a value of 
TAGDEPENDENT
. For the 
SimplePrimeTag
 discussed here, I use 
EMPTY
 as below:
EMPTY
Listing 14.5 shows the full TLD file. 
Listing 14.5 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/.
  
  
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




 

 

 

 

 Home | About Us | Network | Services | Support | FAQ | Control Panel | Order Online | Sitemap | Contact

jsp web hosting

 

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