Home | Add to Favorites | Ebooks Directory | News  
JSP  Resources
Home
JSP  Article
JSP Tutorial 
JSP Example
Books
JSP and XML
JSP Source code
JSP Tags

The custom tag library provides a mechanism by using which the programmer can encapsulate recurring code or tasks and reuse them in multiple applications

Custom tags like XML  and HTML tags contain the start and end tags and a body


 

A custom tag usage can be specified  using the taglib directive

Custom tags can  be categorized as

  • Simple tags
  • Tags with attributes or nested tags


The tag handler and  TLD files are created to implement the functionality of custom tags in a JSP file



 


Methods in tagHandler

  • doStartTag()
  • doEndTag()
  • release()


Tag library definition (TLD) file is an XML file ) that contains the tag library description and consists of the folloing tags


  • taglib
  • tlibversion
  • jspversion
  • info
  • name
  • tagclass
  • bodycontent
 

The errors in JSP can be categorized as either time errors or request time errors The error page is a separate file that is used to trap runtime errors of a JSP Page

                                                             Go To Index