<external-asset> element

Appears in: <component-specification> and <page-specification>

Defines an asset at an arbitrary URL. The URL may begin with a slash to indicate an asset on the same web server as the application, or may be a complete URL to an arbitrary location on the Internet.

External assets may be accessed at runtime with the OGNL expression assets.name.

Figure B.16. <external-asset> Attributes

NameTypeRequired ?Default ValueDescription
namestringyes A name for the asset. Asset names must be valid Java identifiers.
URLstringyes The URL used to access the asset.