
META-INF.ao.tld Maven / Gradle / Ivy
@{description.html}
]]>
@{project.name}
@{parsedVersion.majorVersion}.@{parsedVersion.minorVersion}.@{parsedVersion.incrementalVersion}
ao
@{project.url}
Renders an <a> tag.
The body is trimmed while written.
If the body is empty after being trimmed, then href itself will be written as the body,
represented in RFC 3987: IRI Unicode format.
If the href has a scheme of mailto:
, telnet:
, or tel:
,
the scheme is stripped and the remainder of the href is displayed.
Any attribute that has no namespace and begins with param.
is added to the href as a URL 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.
]]>
a
com.aoindustries.taglib.ATag
scriptless
The id of the element.
A nested <ao:id> tag will override this value.
]]>
id
false
true
java.lang.String
The href for the link.
The href is modified in several ways to make things much easier to work with.
A nested <ao:href> tag will override this value.
In order to make relative paths predictable, relative paths are interpreted from
the current JSP page, as long as all includes have been done via
<ao:include>
and any forward via <ao:forward>.
In order to keep paths app-relative, if starts with a /, the context path will be
prepended to the path.
In order to simplify things behind URL mapping schemes,
the href is always written starting with '/'. This avoids any need to include any
<ao:base> tags.
URL rewriting is performed as needed via
HttpServletResponse.encodeURL.
To support paths in different character sets, a Unicode to ASCII URI encoding is performed
on every character that is not defined in RFC 3986: Reserved Characters.
To avoid ambiguity, any dynamic parameters or anchors in the URL must have been correctly encoded by the caller.
Any directly nested <ao:param>
or <ao:params>
tag will add parameters to the href.
]]>
href
false
true
java.lang.String
When true
, generates an absolute URL for the href for the link.
Defaults to false
.
]]>
absolute
false
true
boolean
When true
, will generate a Canonical URL.
Canonical URLs should be used where per-user response URL rewriting
(such as information added when cookies are disabled) should be avoided.
Defaults to false
.
]]>
canonical
false
true
boolean
If the href represents a local resource, a parameter of "lastModified=#####" may be
automatically added with the timestamp of the local resource to the nearest second.
May be one of true
, false
, or auto
.
Defaults to auto
.
In auto mode, last modified stamping may be disabled by the client with
the X-com-aoindustries-servlet-lastmodified-enabled: false
header.
In auto mode, last modified stamping is not performed on
Canonical URLs.
]]>
addLastModified
false
true
java.lang.String
The hreflang for the link.
A nested <ao:hreflang> tag will override this value.
]]>
hreflang
false
true
java.lang.Object
The rel for the link.
A nested <ao:rel> tag will override this value.
]]>
rel
false
true
java.lang.String
The type for the link.
A nested <ao:type> tag will override this value.
]]>
type
false
true
java.lang.String
The target for the link.
A nested <ao:target> tag will override this value.
]]>
target
false
true
java.lang.String
The title text for the element.
A nested <ao:title> tag will override this value.
]]>
title
false
true
java.lang.Object
The CSS class for the element.
A nested <ao:class> tag will override this value.
]]>
class
false
true
java.lang.String
The CSS style for the element.
A nested <ao:style> tag will override this value.
]]>
style
false
true
java.lang.Object
A JavaScript onclick handler.
A nested <ao:onclick> tag will override this value.
]]>
onclick
false
true
java.lang.Object
A JavaScript onmouseover handler.
A nested <ao:onmouseover> tag will override this value.
]]>
onmouseover
false
true
java.lang.Object
A JavaScript onmouseout handler.
A nested <ao:onmouseout> tag will override this value.
]]>
onmouseout
false
true
java.lang.Object
true
Provides an action attribute to its
ActionAttribute
parent tag.
]]>
action
com.aoindustries.taglib.ActionTag
scriptless
Provides an alt attribute to its
AltAttribute
parent tag.
]]>
alt
com.aoindustries.taglib.AltTag
scriptless
Renders an <area> tag.
The body is invoked to support nested tags, but with any output discarded.
Any attribute that has no namespace and begins with param.
is added to the href as a URL 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.
]]>
area
com.aoindustries.taglib.AreaTag
com.aoindustries.taglib.AreaTagTEI
scriptless
The id of the element.
A nested <ao:id> tag will override this value.
]]>
id
false
true
java.lang.String
The shape of the area.
Must be one of "default"
, "rect"
, "circle"
, or "poly"
.
]]>
shape
true
true
java.lang.String
The coordinates of the area.
Required except when shape
is "default"
.
]]>
coords
false
true
java.lang.String
The href for the area.
The href is modified in several ways to make things much easier to work with.
A nested <ao:href> tag will override this value.
In order to make relative paths predictable, relative paths are interpreted from
the current JSP page, as long as all includes have been done via
<ao:include>
and any forward via <ao:forward>.
In order to keep paths app-relative, if starts with a /, the context path will be
prepended to the path.
In order to simplify things behind URL mapping schemes,
the href is always written starting with '/'. This avoids any need to include any
<ao:base> tags.
URL rewriting is performed as needed via
HttpServletResponse.encodeURL.
To support paths in different character sets, a Unicode to ASCII URI encoding is performed
on every character that is not defined in RFC 3986: Reserved Characters.
To avoid ambiguity, any dynamic parameters or anchors in the URL must have been correctly encoded by the caller.
Any directly nested <ao:param>
or <ao:params>
tag will add parameters to the href.
]]>
href
false
true
java.lang.String
When true
, generates an absolute URL for the href for the area.
Defaults to false
.
]]>
absolute
false
true
boolean
When true
, will generate a Canonical URL.
Canonical URLs should be used where per-user response URL rewriting
(such as information added when cookies are disabled) should be avoided.
Defaults to false
.
]]>
canonical
false
true
boolean
If the href represents a local resource, a parameter of "lastModified=#####" may be
automatically added with the timestamp of the local resource to the nearest second.
May be one of true
, false
, or auto
.
Defaults to auto
.
In auto mode, last modified stamping may be disabled by the client with
the X-com-aoindustries-servlet-lastmodified-enabled: false
header.
In auto mode, last modified stamping is not performed on
Canonical URLs.
]]>
addLastModified
false
true
java.lang.String
The hreflang for the area.
A nested <ao:hreflang> tag will override this value.
]]>
hreflang
false
true
java.lang.Object
The rel for the area.
A nested <ao:rel> tag will override this value.
]]>
rel
false
true
java.lang.String
The target for the area.
A nested <ao:target> tag will override this value.
]]>
target
false
true
java.lang.String
The type for the area.
A nested <ao:type> tag will override this value.
]]>
type
false
true
java.lang.String
The alt text for the area.
A nested <ao:alt>
tag will override this value.
]]>
alt
false
true
java.lang.Object
The title text for the element.
A nested <ao:title> tag will override this value.
]]>
title
false
true
java.lang.Object
The CSS class for the element.
A nested <ao:class> tag will override this value.
]]>
class
false
true
java.lang.String
The CSS style for the element.
A nested <ao:style> tag will override this value.
]]>
style
false
true
java.lang.Object
A JavaScript onclick handler.
A nested <ao:onclick> tag will override this value.
]]>
onclick
false
true
java.lang.Object
A JavaScript onmouseover handler.
A nested <ao:onmouseover> tag will override this value.
]]>
onmouseover
false
true
java.lang.Object
A JavaScript onmouseout handler.
A nested <ao:onmouseout> tag will override this value.
]]>
onmouseout
false
true
java.lang.Object
true
Adds an argument to its
ArgsAttribute
parent tag.
]]>
arg
com.aoindustries.taglib.ArgTag
scriptless
The name of argument tag.
A nested <ao:name> tag will override this value.
]]>
name
false
true
java.lang.String
The value of the parameter.
A nested <ao:value> tag will override this value.
If neither is provided, the output of the body is used with whitespace trimmed.
]]>
value
false
true
java.lang.Object
Evaluates the test expression, if it is not true
throws
AssertionError
with the optional message.
]]>
assert
com.aoindustries.taglib.AssertTag
empty
The condition to be evaluated. This condition is always evaluated
regardless whether Java assertions are enabled or disabled.
]]>
test
true
true
boolean
The message included in the
AssertionError,
only evaluated as-needed due to use of deferred expressions.
]]>
message
false
java.lang.String
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.
]]>
base
com.aoindustries.taglib.BaseTag
empty
Writes a <br>
tag in the current serialization.
]]>
br
com.aoindustries.taglib.BrTag
empty
Sets the bundle used by any nested
<ao:message> tags
or functions.
]]>
bundle
com.aoindustries.taglib.BundleTag
JSP
The base name of resource bundle to access.
]]>
basename
true
true
java.lang.String
The prefix applied to any nested
<ao:message> tag
or function keys.
]]>
prefix
false
true
java.lang.String
Provides a checked attribute to its
CheckedAttribute
parent tag.
The body, after trimming, must contain either true
, false
, or be empty.
If empty, the checked attribute of the parent tag is not overridden.
]]>
checked
com.aoindustries.taglib.CheckedTag
scriptless
Like
<c:choose>,
except uses deferred expressions.
]]>
choose
com.aoindustries.taglib.ChooseTag
JSP
Provides a class attribute to its
ClassAttribute
parent tag.
]]>
class
com.aoindustries.taglib.ClassTag
scriptless
Writes a <col>
tag in the current serialization.
]]>
col
com.aoindustries.taglib.ColTag
empty
The id of the element.
A nested <ao:id>
tag will override this value.
]]>
id
false
true
java.lang.String
The span of the element.
]]>
span
false
true
int
The CSS class for the element.
A nested <ao:class>
tag will override this value.
]]>
class
false
true
java.lang.String
The CSS style for the element.
A nested <ao:style>
tag will override this value.
]]>
style
false
true
java.lang.Object
Provides a content attribute to its
ContentAttribute
parent tag.
]]>
content
com.aoindustries.taglib.ContentTag
scriptless
Disables the resource editor for this request.
]]>
disableResourceEditor
com.aoindustries.taglib.DisableResourceEditorTag
empty
Provides a disabled attribute to its
DisabledAttribute
parent tag.
The body, after trimming, must contain either true
, false
, or be empty.
If empty, the disabled attribute of the parent tag is not overridden.
]]>
disabled
com.aoindustries.taglib.DisabledTag
scriptless
Provides an enctype attribute to its
EnctypeAttribute
parent tag.
]]>
enctype
com.aoindustries.taglib.EnctypeTag
scriptless
Renders a <form> tag.
Any attribute that has no namespace and begins with param.
is added as a hidden form element.
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.
]]>
form
com.aoindustries.taglib.FormTag
com.aoindustries.taglib.FormTagTEI
scriptless
The method used, must be either post or get.
Defaults to get
.
A nested <ao:method>
tag will override this value.
]]>
method
false
true
java.lang.String
The id of the element.
A nested <ao:id>
tag will override this value.
]]>
id
false
true
java.lang.String
The action for the form.
The action is modified in several ways to make things much easier to work with.
A nested <ao:action> tag will override this value.
In order to make relative paths predictable, relative paths are interpreted from
the current JSP page, as long as all includes have been done via
<ao:include>
and any forward via <ao:forward>.
In order to keep paths app-relative, if starts with a /, the context path will be
prepended to the path.
In order to simplify things behind URL mapping schemes,
the action is always written starting with '/'. This avoids any need to include any
<ao:base> tags.
URL rewriting is performed as needed via
HttpServletResponse.encodeURL.
To support paths in different character sets, a Unicode to ASCII URI encoding is performed
on every character that is not defined in RFC 3986: Reserved Characters.
To avoid ambiguity, any dynamic parameters or anchors in the URL must have been correctly encoded by the caller.
Any directly nested <ao:param>
or <ao:params>
tag will add parameters to the action.
Any URL parameters will not be in the action attribute, but instead will be rewritten into hidden form elements.
This, in conjuction with response URL rewriting, can maintain state even through posts.
]]>
action
false
true
java.lang.String
The target for the form.
A nested <ao:target>
tag will override this value.
]]>
target
false
true
java.lang.String
The enctype for the form.
A nested <ao:enctype>
tag will override this value.
]]>
enctype
false
true
java.lang.String
The CSS class for the element.
A nested <ao:class> tag will override this value.
]]>
class
false
true
java.lang.String
The CSS style for the element.
A nested <ao:style>
tag will override this value.
]]>
style
false
true
java.lang.Object
A JavaScript onsubmit handler.
A nested <ao:onsubmit>
tag will override this value.
]]>
onsubmit
false
true
java.lang.Object
true
Forwards to another resource.
Stops processing of the containing JSP page.
This has three advantages over the standard
<jsp:forward>
tag:
- You may clear parameters such that only those specifically added will be passed on to the next page
- You may have other nested tags used to select and build the set of parameters
-
You may pass argument objects instead of only
String
parameters (see below)
Any attribute that has no namespace and begins with param.
is added to the parameters.
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. If parameters are not cleared, nested parameters are added before request parameters.
Argument objects are passed to the forwarded page via request-scope arg
Map.
Any arguments to the current JSP page are not automatically passed-on to the forwarded page
(this differs from parameters in this way).
Any attribute that has no namespace and begins with arg.
is added as an argument.
The argument name is the part of the attribute name following arg.
.
Because this argument becomes an element in the
Map
named arg
in the forwarded page, the attribute
name and JSP Expression Language name will match precisely.
Nested <ao:arg> tags may also be used to pass arguments.
It is an error for the same argument name to be used twice (including when set as null
).
Security Note: page must be a trusted value since it can access any resource available via RequestDispatcher. It would be incorrect to use a value that can be manipulated by a client in any way.
Recommend use of <ao:base> on target page to have relative paths interpreted from the forwarded-to page.
]]>exact_name | matches the name exactly |
* | matches all (clears all parameters) |
*suffix | matches the name with "endsWith" |
prefix* | matches the name with "beginsWith" |
Defaults to none cleared.
]]>true
, false
, or be empty.
If empty, the frameborder attribute of the parent tag is not overridden.
]]>
The content type of this tag is text/plain
.
SGML
, forces the content-type to be text/html
.
When XML
, forces the content-type to be application/xhtml+xml
.
When auto
(the default), the following steps are performed to resolve the serialization:
- Use the serialization active on the current request.
-
Use the application context-param
com.aoindustries.html.Serialization.default
that allows an application to control the selection of HTML versus XHTML. -
When this context-param is unspecified or
auto
, determine the serialization based on the client'sAccept
header.
This should normally be left with the default value of auto
. This is used
when the content is known to contain invalid markup that can not be parsed as XML.
default
, HTML5
, STRICT
, TRANSITIONAL
,
FRAMESET
, or NONE
.
Defaults to default
. NONE
will suppress the output of a doctype.
When default
(the default), the following steps are performed to resolve the doctype:
- Use the doctype active on the current request.
-
Use the application context-param
com.aoindustries.html.Doctype.default
that allows an application to control the default doctype. -
When this context-param is unspecified or
default
, defaults toHTML5
, which results in a breaking change (this tag used to default toSTRICT
).
Any attribute that has no namespace and begins with param.
is added to the src as a URL 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.
]]>
For maximum HTML/XHTML and HTML 4/5 compatibility, this value is
written as both id
and name
attributes.
A nested <ao:src> tag will override this value.
In order to make relative paths predictable, relative paths are interpreted from the current JSP page, as long as all includes have been done via <ao:include> and any forward via <ao:forward>.
In order to keep paths app-relative, if starts with a /, the context path will be prepended to the path.
In order to simplify things behind URL mapping schemes, the src is always written starting with '/'. This avoids any need to include any <ao:base> tags.
URL rewriting is performed as needed via HttpServletResponse.encodeURL.
To support paths in different character sets, a Unicode to ASCII URI encoding is performed on every character that is not defined in RFC 3986: Reserved Characters. To avoid ambiguity, any dynamic parameters or anchors in the URL must have been correctly encoded by the caller.
Any directly nested <ao:param> or <ao:params> tag will add parameters to the src.
]]>true
, generates an absolute URL for the src for the frame.
Defaults to false
.
]]>true
, will generate a Canonical URL.
Canonical URLs should be used where per-user response URL rewriting
(such as information added when cookies are disabled) should be avoided.
Defaults to false
.
]]>true
, false
, or auto
.
Defaults to auto
.
In auto mode, last modified stamping may be disabled by the client with
the X-com-aoindustries-servlet-lastmodified-enabled: false
header.
In auto mode, last modified stamping is not performed on Canonical URLs.
]]>true
or false
.
A non-empty nested <ao:frameborder>
tag will override this value.
Defaults to true
.
]]>The src may be provided in one of three ways, in precedence order:
- Direct child <ao:src> tag.
- As the src attribute
- Contents of tag body, trimmed.
Also, when usemap
is not set, the alt value is required either as an attribute or a nested
<ao:alt> tag.
Any attribute that has no namespace and begins with param.
is added to the src as a URL 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.
]]>A nested <ao:src> tag will override this value.
In order to make relative paths predictable, relative paths are interpreted from the current JSP page, as long as all includes have been done via <ao:include> and any forward via <ao:forward>.
In order to keep paths app-relative, if starts with a /, the context path will be prepended to the path.
In order to simplify things behind URL mapping schemes, the src is always written starting with '/'. This avoids any need to include any <ao:base> tags.
URL rewriting is performed as needed via HttpServletResponse.encodeURL.
To support paths in different character sets, a Unicode to ASCII URI encoding is performed on every character that is not defined in RFC 3986: Reserved Characters. To avoid ambiguity, any dynamic parameters or anchors in the URL must have been correctly encoded by the caller.
Any directly nested <ao:param> or <ao:params> tag will add parameters to the src.
]]>true
, generates an absolute URL for the src for the image.
Defaults to false
.
]]>true
, will generate a Canonical URL.
Canonical URLs should be used where per-user response URL rewriting
(such as information added when cookies are disabled) should be avoided.
Defaults to false
.
]]>true
, false
, or auto
.
Defaults to auto
.
In auto mode, last modified stamping may be disabled by the client with
the X-com-aoindustries-servlet-lastmodified-enabled: false
header.
In auto mode, last modified stamping is not performed on Canonical URLs.
]]>
The #
prefix is optional.
If not provided, the #
will be automatically added.
This is expected to be used along with a <ao:map> tag.
]]>Includes another resource and then continues processing of the current JSP page. This has three advantages over the standard <jsp:include> tag:
- You may clear parameters such that only those specifically added will be passed on to the included page
- You may have other nested tags used to select and build the set of parameters
- You may pass argument objects instead of only String parameters (see below)