<skin:link>

Adds a link tag to this page. In precedence order, the href may be provided as:

  1. Nested <ao:href> tag
  2. href attribute
  3. The body of this tag, after trimming, is valid RFC 3986 URI or RFC 3987 IRI.

Parameters must be properly URL encoded but not XML encoded (with & instead of &amp;). The path before the first ? will be encoded by this tag. The preferred approach is to add any necessary parameters using nested <ao:param> and <ao:params> tags.

Any attribute that has no namespace and begins with param. is added to the URL as a parameter. The parameter name is the part of the attribute name following param..

When a parameter value is null it is not added. If the value is an Iterable, Iterator, Enumeration, or array, then each non-null element is coerced to String as a separate parameter in iteration order. Otherwise, the value itself is coerced to String for the parameter value.

Nested <ao:param> or <ao:params> tags will add parameters after any provided as attributes.

Please note, that any links to stylesheets here are never optimized. Please prefer the AO Web Resources Taglib.

Tag Information

Tag Class: com.aoindustries.web.struts.skintags.LinkTag
TagExtraInfo Class: None
Body Content: scriptless
Display Name: None
Dynamic Attributes: true

Attributes

Name Required Evaluation Type Description
rel No Runtime String

The rel of the link. A nested <ao:rel> tag will override this value.

href No Runtime String

The href of the link. A nested <ao:href> tag will override this value.

Parameters must be properly URL encoded but not XML encoded (with & instead of &amp;). The path before the first ? will be encoded by this tag. The preferred approach is to add any necessary parameters using nested <ao:param> and <ao:params> tags.

type No Runtime Object

The type of the link tag. A nested <ao:type> tag will override this value.

Variables

No Variables Defined.