The Six Steps to Building Tag Libraries
The actual building of a tag library is a six-step process:
1. |
Place your business logic into a Java class file. Typically, this means using JavaBeans.
|
2. |
Create a tag handler. This Java class file contains the code that implements each tag's functionality.
|
3. |
Create a TLD (tag library descriptor) file. This file describes the tag library for the JSP system.
|
4. |
Create a distribution file. Tag libraries are portable and generally a programmer will package a tag library for distribution. This is optional.
|
5. |
Register the tag library. This step tells the JSP container where to find the TLD file. This can be as easy as dropping a JAR file into the JSP application.
|
6. | Place the tag library on a JSP page. ... |
Get JSP™ and XML Integrating XML and Web Services in Your JSP™ Application now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.