| |
Tag Library Configuration |
The tag library configuration file is typically provided by the tag library
vendor. In general, users of the tag library will only need to configure
the taglib to point to the vendor's configuration.
resin.conf
<web-app>
<taglib taglib-uri='/mytag/test'
taglib-location='/MyTag.tlb'/>
</web-app>
|
As a shortcut during development, you can pull the taglib definition
into the resin.conf:
<web-app>
<taglib taglib-uri='/mytag/test'>
<tag name='bar' tagclass='test.NoTag'/>
<tag name='foo' tagclass='test.MyTag' teiclass='test.MyTagInfo'/>
</web-app>
|
Resin will detect any META-INF/*.tld and WEB-INF/*.tld
automatically, so you don't need to add them individually. (The new behavior
is part of the Servlet 2.3 spec.)
Defines a tag library. The taglib declaration will contain
several tag declarations.
Attribute | Meaning
|
version | Version of the tag library.
|
jspversion | Expected JSP version
|
shortname | A short name for the tag library. For IDEs, this may
give a suggested tag prefix.
|
uri | A unique identifier for the tag library.
|
info | An information string for the tag library.
|
Defines a tag. The tag may contain several attribute
declarations.
Attribute | Meaning
|
name | The tag name
|
tagclass | The tag class
|
teiclass | The TagExtraInfo class (used for validation and
declaring implicit variables.
|
bodycontent | False if the tag should always be empty.
|
info | An information string for the tag.
|
Defines a tag attribute.
Attribute | Meaning
|
name | The attribute name.
|
required | True if the tag is required.
|
rtexprvalue | True if the tag can use a real time expression.
|
Copyright © 1998-2002 Caucho Technology, Inc. All rights reserved.
Resin® is a registered trademark,
and HardCoretm and Quercustm are trademarks of Caucho Technology, Inc. | |
|