<context-asset> element

Specifies an asset located relative to the web application context root folder. Context assets may be localized.

Assets for an instantiated component (or page) may be accessed using the OGNL expression assets.name.

Figure B.12. <context-asset> Attributes

NameTypeRequired ?Default ValueDescription
namestringyes The name of the asset, which must be a valid Java identifier.
pathstringyes The path to the asset, assuming a root directory matching the servlet context root directory. The path should begin with leading forward slash.