JSP Tag Wizard
This wizard generates a new Java source file that implements the
Tag
or SimpleTag
interface
(or one of their descendants) to create a JSP custom tag.
You invoke it from the Object Gallery (File | New... on the menu) on the
Web tab. It is attached to the J2EE | Web personality in JBuilder 10 and up.
- Select the version of the JSP specification
to work with - JSP 1.1, JSP 1.2, or JSP 2.0. This enables or disables
the appropriate functionality below.
- Enter the name of the package
to which this class belongs.
- Enter the name of the class itself.
This determines the name of the file used to save the new class.
- Select from a number of options to determine the functionality
of the new tag. Based on these selections the wizard generates additional
code that provides a framework to support these abilities.
- Closing text for tag - check this to let you
add extra processing at the end of a tag, possibly following any content
- Nested tag - check this to include code to
check for a surrounding parent tag
- Manipulate body of tag - check this to let you
work with the content of the tag in the
doAfterBody
method
(as it implements the BodyTag
interface)
- Repeat body - check this to let you generate
code to loop through the tag's content several times (checking this
automatically selects Manipulate body of tag
too if using JSP 1.1)
- Implement TryCatchFinally - checking this adds
error handling methods to the tag (not available in JSP 1.1)
- Simple tag - check this to use a simpler
life cycle for your tag (only available in JSP 2.0)
- Dynamic attributes - check this if your tag
accepts attributes other than those specifically named in the tag library
descriptor file (only available in JSP 2.0)
- Extra info class - check this to generate an
additional class for your tag that provides extra details about it -
including translation-time validation and variable definitions
- Specify any properties you want for the tag. Enter the property's
name and select its type
from the combobox before pressing Add to include it in the
list. Use the Delete button to remove a property.
These entries generate instance variables and setter methods in the
tag class.
Generate the new class and add it to the project with the
OK button.
Press Cancel to quit without doing anything.
Press Help to show this document.
A complementary wizard generates the
Tag Library Descriptor file from these tag classes for you.
Version 3.0
Written by Keith Wood
(kbwood@iprimus.com.au).