Prentice Hall and Sun Microsystems. Personal use only; do not redistribute.
A.14 Creating Custom JSP Tag Libraries
541
The Tag Library Descriptor File
  Within 
taglib
 element, contains 
tag
 element for each tag handler. 
E.g.:
prime
coreservlets.tags.PrimeTag
Outputs a random N digit prime.
EMPTY
length
false
The JSP File
<%@ taglib uri="some taglib.tld" prefix="prefix" %>
body
Assigning Attributes to Tags
  Tag handler: 
Implements 
setXxx
 for each attribute 
xxx
.
  Tag Library Descriptor: 
...
length
false
true <%   sometimes   %>
Including the Tag Body
  Tag handler: 
You should return 
EVAL_BODY_INCLUDE
 instead of 
SKIP_BODY
 from 
doStartTag
.
  Tag Library Descriptor: 
...
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




 

 

 

 

 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