You can create your own custom tag converter. To add your own converter, follow these steps:
Create a class that implements the
atg.droplet.TagConverter
interface. This class must implement the four methods described below under TagConverter Methods.Call the
TagConverterManager.registerTagConverter
method with an instance of this class. This call must be made before your converter is used by a JavaServer Page. Make sure that you add this code to a class that gets initialized during the startup process of your module—that is, is in theInitial
services list.A new tag converter can support any number of attributes. Create attributes by making an instance of the
TagAttributeDescriptor
class. Be sure to populate thename
property to avoid aNullPointerException
.Add a
<dsp:valueof>
,<dsp:input>
, or<dsp:param>
tag to the page that uses this converter.
For more information about creating and using tag converters, see the atg.droplet.TagConverterManager
entry in the ATG API Reference or the Tag Converters section of the Creating JavaServer Pages chapter of the ATG Page Developer’s Guide.