Struts: The Complete Reference, 2nd Edition
| < Day Day Up > |
|
Several of the tags for the Tiles configuration file give you the option to nest metadata tags. The metadata tags exist solely for adding extra information to the configuration file that will show up in GUI tools and the like; the Tiles framework, itself, ignores the metadata tags. None of the metadata tags has any attributes, thus you just add text between opening and closing tags to specify their value, as shown here:
<action path="/search" type="com.xyzcorp.app.SearchAction"> <icon> <small-icon>small.gif</small-icon> <large-icon>large.gif</large-icon> </icon> <display-name>Search Action</display-name> <description>Search Action searches for employees.</description> </action>
The following table lists each of the metadata tags and its description.
Tag | Description |
---|---|
description | Defines descriptive text for the enclosing tag. |
display-name | Defines a short description (or name) for the enclosing tag. |
icon | Encapsulates an instance of the large-icon and small-icon tags. |
large-icon | Defines the location for a large (32×32 pixel) icon to associate to the enclosing tag. |
small-icon | Defines the location for a small (16×16 pixel) icon to associate to the enclosing tag. |
| < Day Day Up > |
|