These samples illustrate various aspects of custom tags
using the JSP 1.2 tag extension mechanism.
The Loop Tag Example demonstrates an example looping
tag.
The Tag Validator Examplesshow how to use a tag validator
.
The XML View Examples display the xmlview which is
the translated xml form that is given to the tag library validator.
All the above examples are packaged in the example.jar in the WEB-INF/lib
directory. Togther, they demonstrate the JSP 1.2 feature, support of
multiple tag libraries per jar. The .tld's for the above tag libraries
are in the example.jar in its META-INF/ directory. Each .tld contains
a unique <uri> element. The application's web.xml contains <taglib>
elements whose <taglib-location> matches the <uri> element in one
of the .tld's. Finally, each of the web.xml's <taglib> elements contain
a <taglib-uri> which has a "short name". The "short name" is used in the .jsp's.
For example, "/oraloop" is the value used in the looptag example's taglib
directive,
<%@ taglib prefix="example" uri="/oraloop" %>
To see these examples, use the links on the left. |