IntelliJ IDEA 2018.3 Help

Struts Tab

View | Tool Windows | Struts Assistant


The tab is available from the Struts Assistant tool window.

Use this tab to manage Struts elements in the struts-config.xml configuration file.

The tab displays three views:

The views are synchronized. If a node is selected in the Structure Tree, the Properties Table shows the node's attributes. If a node has a corresponding diagram object (for example, an Action cell or a Forward edge), this diagram object is selected as well.

Structure Tree

The view shows the Struts elements that are used in your application as nodes of a structure tree. As you create, edit, and remove these nodes and their subordinate items, these changes are immediately reflected in the struts-config.xml configuration file.

strutsAssistantToolWindowStrutsTab.png

Item

Name and tooltip

Description

iconStrutsConfig

struts-config.xml

The root node of the application structure tree.

Context menu (the same for all nodes)

F4

Jump to source

Select this menu item to switch to the code block in the struts-config.xmlfile, text view, that corresponds to the selected item in the tree.

icons actions expandall svg

Expand All

Click this button to expand all the nodes in the tree.

icons actions collapseall svg

Collapse All

Click this button to collapse all the nodes in the tree.

The view shows the following Struts element nodes:

Form Beans Node

strutsAssistantToolWindowStrutsTabFormBeansNode.png

Item

Name and tooltip

Description

iconFormBeans

Form Beans

Under this node, manage form beans and their properties.

The following actions are available through the context menu of the Form Beans node:

iconBean

Add Form Bean

Select this menu item to add a new form bean to the application.

icons general remove svg

Remove Form Beans

Select this menu item to remove all the form beans from the application.

iconBean

Form Bean

A form bean node.

The following actions are available through the context menu of a Form Bean:

iconFormProperty

Add Form Property

Select this menu item to add a form property to the bean.

iconSetProperty

Add Set Property

Select this menu item to add a set property to the bean or to a form property.

icons general remove svg

Remove Bean/
Form Property/
Set Property

Select this menu item to remove the entire bean or its form or set property.

iconFormProperty

Form Property

Bean's form property.

iconSetProperty

Set Property

A set property of the bean or a form property.

Global Exceptions Node

strutsAssistantToolWindowStrutsTabGlobalExceptionsNode.png

Item

Name and tooltip

Description

iconExcept

Global Exceptions

Under this node, manage global exceptions and their properties.

The following actions are available on the context menu of the Global Exceptions node:

iconExcept

Add Global Exception

Select this menu item to add a new global exception to the application.

icons general remove svg

Remove Global Exceptions

Select this menu item to remove all the global exceptions from the application.

iconExcept

Global Exception

A global exception node.

The following actions are available on the context menu of a Global Exception:

iconSetProperty

Add Set Property

Select this menu item to add a set property to the global exception.

icons general remove svg

Remove Exception/ Set Property

Select this menu item to remove the entire global exception or its set property.

iconSetProperty

Set Property

A set property of the global exception.

Global Forwards Node

strutsAssistantToolWindowStrutsTabGlobalForwardsNode.png

Item

Name and tooltip

Description

iconGlobalForward

Global Forwards

Under this node, manage global forwards and their properties.

The following actions are available on the context menu of the Global Forwards node:

iconForward

Add Global Forward

Select this menu item to add a new global forward to the application.

icons general remove svg

Remove Global Forwards

Select this menu item to remove all the global forwards from the application.

iconForward

Global Forward

A global forward node.

The following actions are available on the context menu of a Global Forward:

iconSetProperty

Add Set Property

Select this menu item to add a set property to the global forward.

icons general remove svg

Remove Exception/Set Property

Select this menu item to remove the entire global forward or its set property.

iconSetProperty

Set Property

A set property of the global forward.

Action Mappings Node

strutsAssistantToolWindowStrutsTabActionMappingsNode.png

Item

Name and tooltip

Description

strutsAssistantToolWindowActionMapping

Action Mappings

Under this node, manage the action mappings within the application, mapping properties, forwards, and exceptions.

The following operations are available on the context menu of the Action Mappings node:

strutsAssistantToolWindowActionMapping

Add Action

Select this menu item to dd a new action to the application.

icons general remove svg

Remove Action Mappings

Select this menu item to remove all the action mappings from the application.

strutsAssistantToolWindowActionMapping

Action

An action node.

The following operations are available on the context menu of an Action:

iconExcept

Add Exception

Select this menu item to add an exception to the action.

iconForward

Add Forward

Select this menu item to add a forward to the action.

iconSetProperty

Add Set Property

Select this menu item to add a set property to the action or actions's forward or action's exception.

iconExcept

Exception

An exception defined within the action.

iconForward

Global Forward

A forward within the action.

iconSetProperty

Set Property

A set property of the action, or action's forward, or action's exception.

Controller Node

strutsAssistantToolWindowStrutsTabControllerNode.png

Item

Name and tooltip

Description

iconController

Controller

Under this node, manage the properties of the application controller.

The following operations are available on the context menu of the Controller node:

iconSetProperty

Add Set Property

Select this menu item to add a set property to the controller.

iconSetProperty

Set Property

A set property of the controller.

icons general remove svg

Remove Controller/
Set Property

Select this menu item to remove the controller or its set property from the application.

Message Resources Node

strutsAssistantToolWindowStrutsTabMessageResourcesNode.png

Item

Name and tooltip

Description

iconMessageresources

Message Resources

Under this node, manage the message resources of the application.

The following operations are available on the context menu of the Message Resources node:

iconMessageresources

Add Message Resource

Select this menu item to add a message resource to the application.

icons general remove svg

Remove Message Resources

Select this menu item to remove the all message resources from the application.

iconMessageresources

Message Resource

A message resource of the application.

The following operations are available on the context menu of a Message Resource:

iconSetProperty

Add Set Property

Select this menu item to add a set property to the message resource.

icons general remove svg

Remove Message Resources/
Set Property

Select this menu item to remove the message resource or its set property from the application.

iconSetProperty

Set Property

A set property of the message resource.

Plugins Node

strutsAssistantToolWindowStrutsTabPluginsNode.png

Item

Name and tooltip

Description

iconPlugin

Plugins

Under this node, manage the application plugins.

The following operations are available on the context menu of the Plugins node:

iconPlugin

Add Plugin

Select this menu item to add a new plugin to the application.

icons general remove svg

Remove Plugins

Select this menu item to remove all plugins from the application.

iconPlugin

Plugin

A plugin node.

The following operations are available on the context menu of a Plugin:

iconSetProperty

Add Set Property

Select this menu item to add a set property to the plugin.

icons general remove svg

Remove Plugin/Set Property

Select this menu item to remove the entire plugin or its set property.

iconSetProperty

Set Property

A set property of the plugin.

Properties Table

The view shows the attributes of the node selected in the Structure Tree.

Item

Description

Name

The names of the attributes of the element selected in the Structure Tree.

Value

The values of the attributes of the element selected in the Structure Tree.

Web Flow Diagram

The view graphically presents the relations among the elements of your application. The diagram features common graph view elements.

Forwards and exceptions are displayed as directed graph edges.

Icons used on the Web Flow Diagram

Item

Description

iconAction

Struts Action

strutsJSPPage

Struts JSP page

iconGlobalForward

Struts global forward

iconExcept

Struts global exception

Last modified: 14 December 2018

See Also