Struts tiles tags

You can create Struts tiles tags from the Struts Tiles Tags drawer. These tags provide a full-featured, robust framework for assembling presentation pages from component parts.

When you are editing a Struts JSP page in Page Designer, you can open the Struts Tiles Tags drawer on the palette and add to the page any of the elements that are listed in the table below. The Tile Tags drawer is hidden by default. To make it visible, right-click the palette and customize it.

The tags are listed in alphabetical order. Some tags may be hidden on the palette. To show a hidden tag in the palette, right-click the tags drawer and select

Customize. Clear the

Hide check box for each component that you want to display on the palette.

Each tag has a number of attributes you can set by using the Properties view of the tag. For an alphabetical listing and description of all the attributes, refer to the related reference. To look up attributes for which you want additional detail, use the Attribute listings while working with the Properties view of the tag.

Each tag has a

tiles prefix. For example,

add is tiles:add.

Element Description
Add Adds an element to the surrounding list. This is equivalent to

put but for a list element.

Definition Defines a tile.
Get Gets from a request scope the content that was put there by a

put tag.

Get As String Inserts the value of a specified tile attribute into the current JSP page being rendered.
Import Attribute Imports a tile attribute in a specified context.
Init Component Definitions Initializes a tile definitions factory.
Insert Inserts a tile.
Put Puts an attribute into a tile context.
Put List Declares a list to be passed as an attribute to a tile.
Use Attribute Uses an attribute value inside a page.