How to write tag plugins
To write a plugin, you'll need to download the source for Tomcat.
There are two steps:
-
Implement the plugin class.
This class, which implements
org.apache.jasper.compiler.tagplugin.TagPlugin
instructs Jasper what Java codes to generate in place of the tag
handler calls.
See Javadoc for org.apache.jasper.compiler.tagplugin.TagPlugin
for details.
-
Create the plugin descriptor file WEB-INF/tagPlugins.xml
This file
specifies the plugin classes and their corresponding tag handler
classes.