<ao:base>

Adds a <base> tag only when necessary.

After forward (or forward fall-back from redirect), relative paths might not resolve relative to the current JSP page. This will be most evident when forwarding between different directories.

To keep paths relative to the page after a forward, a <base> tag is written when the path of the current JSP page does not equal the path of the original request.

A <base> tag will affect any anchor links on a page. For this reason, this <base> tag primarily exists for when a redirect has to fall-back to a forward to a resource in another path. Properly displaying the main contents in this case is considered more important than correctly behaving anchors.

Tag Information

Tag Class: com.aoindustries.taglib.legacy.BaseTag
TagExtraInfo Class: com.aoindustries.taglib.ElementTagTEI
Body Content: JSP
Display Name: None
Dynamic Attributes: true

Attributes

Name Required Evaluation Type Description
id No Runtime String

The id of the element. A nested <ao:id> tag will override this value.

class No Runtime String

The CSS class for the element. A nested <ao:class> tag will override this value.

dir No Runtime String

The dir of the element. A nested <ao:dir> tag will override this value.

style No Runtime Object

The CSS style for the element. A nested <ao:style> tag will override this value.

Variables

No Variables Defined.