Differences Between a JSP 1.1 and a JSP 1.2 TLD
If you’re jumping from JSP 1.1 directly to JSP 2.0, you may feel that the list above is incomplete. That’s because a number of things changed between JSP 1.1 and 1.2 as well.
Most of the differences were name changes for some elements for
consistency with the naming conventions used in other J2EE descriptor
files. More precisely, hyphens were added to separate words in
element names, and the <info>
element was
replaced with the <description>
element that
is used for the same purpose in other descriptors. The following
table summarizes these name changes:
JSP 1.1 |
JSP 1.2 |
<tlibversion> |
<tlib-version> |
<jspversion> |
<jsp-version> |
<shortname> |
<short-name> |
<info> |
<description> |
<tagclass> |
<tag-class> |
<teiclass> |
<tei-class> |
<bodycontent> |
<body-content> |
A number of new elements were also added to allow more descriptive
information in the TLD. This information may be used by
page-authoring tools and also by tools that generate user
documentation from the TLD: <display-name>
,
<small-icon>
,
<large-icon>
,
<example>
, <type>
,
and <variable>
. How to use these new
elements is described earlier in this section.
Get JavaServer Pages, 3rd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.