IntelliJ IDEA 2016.2 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

ItemName and tooltipDescription
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.
expandAll.png Expand AllClick this button to expand all the nodes in the tree.
img Collapse AllClick this button to collapse all the nodes in the tree.

The view shows the following Struts element nodes:

Form Beans Node

strutsAssistantToolWindowStrutsTabFormBeansNode.png
ItemName and tooltipDescription
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.
delete 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.
delete Remove Bean/
Form Property/
Set Property
Select this menu item to remove the entire bean or its form or set property.
iconFormProperty Form PropertyBean's form property.
iconSetProperty Set PropertyA set property of the bean or a form property.

Global Exceptions Node

strutsAssistantToolWindowStrutsTabGlobalExceptionsNode.png
ItemName and tooltipDescription
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.
delete 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.
delete Remove Exception/ Set Property Select this menu item to remove the entire global exception or its set property.
iconSetProperty Set PropertyA set property of the global exception.

Global Forwards Node

strutsAssistantToolWindowStrutsTabGlobalForwardsNode.png
ItemName and tooltipDescription
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 ForwardSelect this menu item to add a new global forward to the application.
delete Remove Global ForwardsSelect 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 PropertySelect this menu item to add a set property to the global forward.
delete Remove Exception/Set PropertySelect this menu item to remove the entire global forward or its set property.
iconSetProperty Set PropertyA set property of the global forward.

Action Mappings Node

strutsAssistantToolWindowStrutsTabActionMappingsNode.png
ItemName and tooltipDescription
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 ActionSelect this menu item to dd a new action to the application.
delete Remove Action MappingsSelect 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 ExceptionSelect this menu item to add an exception to the action.
iconForward Add ForwardSelect this menu item to add a forward to the action.
iconSetProperty Add Set PropertySelect this menu item to add a set property to the action or actions's forward or action's exception.
iconExcept ExceptionAn exception defined within the action.
iconForward Global ForwardA forward within the action.
iconSetProperty Set PropertyA set property of the action, or action's forward, or action's exception.

Controller Node

strutsAssistantToolWindowStrutsTabControllerNode.png
ItemName and tooltipDescription
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 PropertySelect this menu item to add a set property to the controller.
iconSetProperty Set PropertyA set property of the controller.
delete Remove Controller/
Set Property
Select this menu item to remove the controller or its set property from the application.

Message Resources Node

strutsAssistantToolWindowStrutsTabMessageResourcesNode.png
ItemName and tooltipDescription
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 ResourceSelect this menu item to add a message resource to the application.
delete Remove Message ResourcesSelect 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 PropertySelect this menu item to add a set property to the message resource.
delete Remove Message Resources/
Set Property
Select this menu item to remove the message resource or its set property from the application.
iconSetProperty Set PropertyA set property of the message resource.

Plugins Node

strutsAssistantToolWindowStrutsTabPluginsNode.png
ItemName and tooltipDescription
iconPlugin Plugins Under this node, manage the application plugins.

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

iconPlugin Add PluginSelect this menu item to add a new plugin to the application.
delete Remove PluginsSelect 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 PropertySelect this menu item to add a set property to the plugin.
delete Remove Plugin/Set PropertySelect this menu item to remove the entire plugin or its set property.
iconSetProperty Set PropertyA set property of the plugin.

Properties Table

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

ItemDescription
NameThe names of the attributes of the element selected in the Structure Tree.
ValueThe 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

ItemDescription
iconAction Struts Action
strutsJSPPage
Struts JSP page
iconGlobalForward Struts global forward
iconExcept Struts global exception

See Also

Last modified: 23 November 2016