IntelliJ IDEA 2016.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

ItemName and tooltipDescription
/help/img/idea/2016.3/iconStrutsConfig.png 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.
/help/img/idea/2016.3/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
/help/img/idea/2016.3/iconFormBeans.png 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:

/help/img/idea/2016.3/iconBean.png Add Form Bean Select this menu item to add a new form bean to the application.
/help/img/idea/2016.3/delete.png Remove Form Beans Select this menu item to remove all the form beans from the application.
/help/img/idea/2016.3/iconBean.png Form Bean A form bean node.

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

/help/img/idea/2016.3/iconFormProperty.png Add Form Property Select this menu item to add a form property to the bean.
/help/img/idea/2016.3/iconSetProperty.png Add Set Property Select this menu item to add a set property to the bean or to a form property.
/help/img/idea/2016.3/delete.png Remove Bean/
Form Property/
Set Property
Select this menu item to remove the entire bean or its form or set property.
/help/img/idea/2016.3/iconFormProperty.png Form PropertyBean's form property.
/help/img/idea/2016.3/iconSetProperty.png Set PropertyA set property of the bean or a form property.

Global Exceptions Node

strutsAssistantToolWindowStrutsTabGlobalExceptionsNode.png
ItemName and tooltipDescription
/help/img/idea/2016.3/iconExcept.png 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:

/help/img/idea/2016.3/iconExcept.png Add Global Exception Select this menu item to add a new global exception to the application.
/help/img/idea/2016.3/delete.png Remove Global Exceptions Select this menu item to remove all the global exceptions from the application.
/help/img/idea/2016.3/iconExcept.png Global Exception A global exception node.

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

/help/img/idea/2016.3/iconSetProperty.png Add Set Property Select this menu item to add a set property to the global exception.
/help/img/idea/2016.3/delete.png Remove Exception/ Set Property Select this menu item to remove the entire global exception or its set property.
/help/img/idea/2016.3/iconSetProperty.png Set PropertyA set property of the global exception.

Global Forwards Node

strutsAssistantToolWindowStrutsTabGlobalForwardsNode.png
ItemName and tooltipDescription
/help/img/idea/2016.3/iconGlobalForward.png 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:

/help/img/idea/2016.3/iconForward.png Add Global ForwardSelect this menu item to add a new global forward to the application.
/help/img/idea/2016.3/delete.png Remove Global ForwardsSelect this menu item to remove all the global forwards from the application.
/help/img/idea/2016.3/iconForward.png Global Forward A global forward node.

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

/help/img/idea/2016.3/iconSetProperty.png Add Set PropertySelect this menu item to add a set property to the global forward.
/help/img/idea/2016.3/delete.png Remove Exception/Set PropertySelect this menu item to remove the entire global forward or its set property.
/help/img/idea/2016.3/iconSetProperty.png Set PropertyA set property of the global forward.

Action Mappings Node

strutsAssistantToolWindowStrutsTabActionMappingsNode.png
ItemName and tooltipDescription
/help/img/idea/2016.3/strutsAssistantToolWindowActionMapping.png 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:

/help/img/idea/2016.3/strutsAssistantToolWindowActionMapping.png Add ActionSelect this menu item to dd a new action to the application.
/help/img/idea/2016.3/delete.png Remove Action MappingsSelect this menu item to remove all the action mappings from the application.
/help/img/idea/2016.3/strutsAssistantToolWindowActionMapping.png Action An action node.

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

/help/img/idea/2016.3/iconExcept.png Add ExceptionSelect this menu item to add an exception to the action.
/help/img/idea/2016.3/iconForward.png Add ForwardSelect this menu item to add a forward to the action.
/help/img/idea/2016.3/iconSetProperty.png Add Set PropertySelect this menu item to add a set property to the action or actions's forward or action's exception.
/help/img/idea/2016.3/iconExcept.png ExceptionAn exception defined within the action.
/help/img/idea/2016.3/iconForward.png Global ForwardA forward within the action.
/help/img/idea/2016.3/iconSetProperty.png Set PropertyA set property of the action, or action's forward, or action's exception.

Controller Node

strutsAssistantToolWindowStrutsTabControllerNode.png
ItemName and tooltipDescription
/help/img/idea/2016.3/iconController.png Controller Under this node, manage the properties of the application controller.

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

/help/img/idea/2016.3/iconSetProperty.png Add Set PropertySelect this menu item to add a set property to the controller.
/help/img/idea/2016.3/iconSetProperty.png Set PropertyA set property of the controller.
/help/img/idea/2016.3/delete.png 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
/help/img/idea/2016.3/iconMessageresources.png 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:

/help/img/idea/2016.3/iconMessageresources.png Add Message ResourceSelect this menu item to add a message resource to the application.
/help/img/idea/2016.3/delete.png Remove Message ResourcesSelect this menu item to remove the all message resources from the application.
/help/img/idea/2016.3/iconMessageresources.png Message Resource A message resource of the application.

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

/help/img/idea/2016.3/iconSetProperty.png Add Set PropertySelect this menu item to add a set property to the message resource.
/help/img/idea/2016.3/delete.png Remove Message Resources/
Set Property
Select this menu item to remove the message resource or its set property from the application.
/help/img/idea/2016.3/iconSetProperty.png Set PropertyA set property of the message resource.

Plugins Node

strutsAssistantToolWindowStrutsTabPluginsNode.png
ItemName and tooltipDescription
/help/img/idea/2016.3/iconPlugin.png Plugins Under this node, manage the application plugins.

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

/help/img/idea/2016.3/iconPlugin.png Add PluginSelect this menu item to add a new plugin to the application.
/help/img/idea/2016.3/delete.png Remove PluginsSelect this menu item to remove all plugins from the application.
/help/img/idea/2016.3/iconPlugin.png Plugin A plugin node.

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

/help/img/idea/2016.3/iconSetProperty.png Add Set PropertySelect this menu item to add a set property to the plugin.
/help/img/idea/2016.3/delete.png Remove Plugin/Set PropertySelect this menu item to remove the entire plugin or its set property.
/help/img/idea/2016.3/iconSetProperty.png 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
/help/img/idea/2016.3/iconAction.png Struts Action
/help/img/idea/2016.3/strutsJSPPage.png
Struts JSP page
/help/img/idea/2016.3/iconGlobalForward.png Struts global forward
/help/img/idea/2016.3/iconExcept.png Struts global exception

See Also

Last modified: 21 March 2017