This sample illustrates how to create and use a custom
tag by JSP 1.1 tag extension mechansim. JSP 1.1 tag extension is a runtime
oriented mechanism.
A loop tag is defined in this sample. It is simlar to
a for-loop construct in other programming language.
exampletag.tld is the tag library descriptor XML file
that describe the basic information of that tag in a declarative way.
ExampleLoopTag.java is the main java class that defines
the behavior of the tag. It is used in both runtime and translation time.
ExampleLoopTagTEI.java is the auxiliary java class that
defines tag extra information, e.g. variables defined by the tag, attributes
validation. This class is used in translation time only.
exampletag.jsp is the actual JSP usage sample.
It shows how to use the loop tag in a nested for-loop situation. |