Struts nested tags

You can create Struts nested tags from the Struts Nested Tags drawer. These tags and supporting classes extend the base Struts tags to let them nest inside each other. When these tags nest, the fundamental logic of the original tags does not change, except that all references to beans and bean properties are managed in a nested context.

When you are editing a Struts JSP page in Page Designer, you can open the Struts Nested Tags drawer on the palette and add to the page any of the elements that are listed in the table below. The Nested 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

nested prefix. For example,

checkbox is nested:checkbox.

Element Description
Check Box Extends the

html:checkbox tag.

Define Extends the

bean:define tag.

Empty Extends the

logic:empty tag.

Equal Extends the

logic:equal tag.

Errors Extends the

html:errors tag.

File Extends the

html:file tag.

Form Extends the

html:form tag.

Greater Equal Extends the

logic:greaterEqual tag.

Greater Than Extends the

logic:greaterThan tag.

Hidden Extends the

html:hidden tag.

Image Extends the

html:image tag.

Img Extends the

html:img tag.

Iterate Extends the

logic:iterate tag.

Less Equal Extends the

logic:lessEqual tag.

Less Than Extends the

logic:lessThan tag.

Link Extends the

html:link tag.

Match Extends the

logic:match tag.

Message Extends the

bean:message tag.

Messages Extends the

html:messages tag.

Messages Not Present Extends the

logic:messagesNotPresent tag.

Messages Present Extends the

logic:messagesPresent tag.

Multibox Extends the

html:multibox tag.

Nest Defines a new level of nesting for child tags to reference.
Not Empty Extends the

logic:notEmpty tag.

Not Equal Extends the

logic:notEqual tag.

Not Match Extends the

logic:notMatch tag.

Not Present Extends the

logic:notPresent tag.

Options Extends the

html:options tag.

Options Collection Extends the

html:optionsCollection tag.

Password Extends the

html:password tag.

Present Extends the

logic:present tag.

Radio Extends the

html:radio tag.

Root Starts a nested hierarchy without the need for a form.
Select Extends the

html:select tag.

Size Extends the

bean:size tag.

Submit Extends the

html:submit tag.

Text Extends the

html:text tag.

Text Area Extends the

html:textarea tag.

Write Extends the

bean:write tag.

Write Nesting Writes or makes a scripting variable of the current nesting level.