TagLib: Util

attr

Description

Emits the following:

attr="BODY"

The purpose of this tag is to aid in the construction of tag attributes, whose content is dynamically generated.

Tag Body

JSP

Tag Parent

<utilsPrefix:link>

Restrictions

None.

Attributes

This tag has the following attributes:

Attribute

Description

Req'd?

attr The fragment of text to emit prior to: ="BODY". Yes
     

Properties

This tag provides the following bean properties:

Property

Description

Access

n/a n/a n/a
     

Example(s)

<%-- example of attr tag usage --%>

<util:link tagstart="<a" tagend=">">
  <util:attr attr="href">
    <util:url path="/DesktopServlet"></util:url>
  </util:attr>
  <util:attr attr="method">GET</util:attr>
</util:link>GO HOME</a>

Will generate a link that includes session encoding, if needed. The "path" attribute is not subject to the rules of file lookup. The emitted markup may look something like:

<a href="/DesktopServlet?sid=1a34" method="GET"/>