AOWeb Struts AOWeb Taglib Reference

Core API for legacy Struts-based site framework with AOServ Platform control panels.

Usage

Standard Syntax

<%@ taglib prefix="aoweb" uri="https://aoindustries.com/aoweb-struts/core/aoweb-taglib/" %>

XML Syntax

<anyxmlelement xmlns:aoweb="https://aoindustries.com/aoweb-struts/core/aoweb-taglib/" />

Tag Library Information

Display Name: AOWeb Struts Core AOWeb Taglib
Version: 1.2.0
Short Name: aoweb
URI: https://aoindustries.com/aoweb-struts/core/aoweb-taglib/

Tag Summary

<aoweb:exists>

Conditionally includes the body if the resources with the provided path exists.

<aoweb:notExists>

Conditionally includes the body if the resources with the provided path does not exist.

<aoweb:scriptGroup>

Some scripts may benefit by delaying or batching their execution. This is especially true when making many changes to the DOM. By nesting related script-generating tags inside a scriptGroup, the execution will be batched into a single script.

<aoweb:date>

Prints a browser-local date. The body should evaluate to the number of milliseconds since the Epoch. If the body is empty, will print &#160; as a placeholder. This may optionally be placed into a <aoweb:scriptGroup> tag to create a single large script instead of many small scripts.

<aoweb:dateTime>

Prints a browser-local date and time. The body should evaluate to the number of milliseconds since the Epoch. If the body is empty, will print &#160; as a placeholder. This may optionally be placed into a <aoweb:scriptGroup> tag to create a single large script instead of many small scripts.

<aoweb:time>

Prints a browser-local time. The body should evaluate to the number of milliseconds since the Epoch. If the body is empty, will print &#160; as a placeholder. This may optionally be placed into a <aoweb:scriptGroup> tag to create a single large script instead of many small scripts.

Function Summary

String ${aoweb:getCardNumberDisplay(String)}

Formats a card number for display. The card number may be a full or masked format. Displays as "•••• ####", where the "####" is the last-four digits of the card number. Each digit may be represented by a "?" when it is unknown.

When null, null is returned.

When an empay string, after trimming, an empty string is returned.

String ${aoweb:getExpirationDisplay(byte, short)}

Formats a card expiration date for display in "MM / YYYY" format.

When both expirationMonth and expirationYear are unknown, null is returned.

When expirationMonth is unknown, returns in "?? / YYYY" format.

When expirationYear is unknown, returns in "MM / ????" format.