How to write tag plugins

To write a plugin, you'll need to download the source for Tomcat. There are two steps:

  1. 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.

  2. Create the plugin descriptor file WEB-INF/tagPlugins.xml

    This file specifies the plugin classes and their corresponding tag handler classes.