Struts template tags
You can create Struts template tags from the Struts Template Tags drawer. These tags provide a full-featured, robust framework for assembling presentation pages from component parts. A template is a JSP page that includes parameterized content. The content of the template is populated by
put tags. The
put tags put content into request scope. The content is retried by
get tags.
Remember: As of Struts 1.1, the template tag library is deprecated. In Struts 1.2, the template tag library is removed and can not be used in a Struts application. Use the tiles tag library instead.
Remember:
This product supports versions 1.0.2, 1.1x, 1.2x and 1.3x of the Apache Struts framework. Struts version 1.0.2 and 1.1.x are supported when an existing project is imported into your workspace. On project creation, select the Struts versions 1.2 or 1.3 facets.
When you are editing a Struts JSP page in Page Designer, you can open the Struts Template Tags drawer on the palette and add to the page any of the elements that are listed in the table below. The Template 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
template prefix. For example,
get is template:get.
Element Description Get Retrieves the content from the request scope. Insert Inserts a template. Put Adds the content of the template into a request scope.