Struts Tab
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.
Item | Name and tooltip | Description |
---|---|---|
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. |
Expand All | Click this button to expand all the nodes in the tree. | |
Collapse All | Click this button to collapse all the nodes in the tree. |
The view shows the following Struts element nodes:
- Form Beans Node
- Global Exceptions Node
- Global Forwards Node
- Action Mappings Node
- Controller Node
- Message Resources Node
- Plugins Node
Form Beans Node
Item | Name and tooltip | Description | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
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:
| ||||||||||
Form Bean | A form bean node. The following actions are available through the context menu of a Form Bean:
| ||||||||||
Form Property | Bean's form property. | ||||||||||
Set Property | A set property of the bean or a form property. |
Global Exceptions Node
Item | Name and tooltip | Description | ||||||
---|---|---|---|---|---|---|---|---|
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:
| |||||||
Global Exception | A global exception node. The following actions are available on the context menu of a Global Exception:
| |||||||
Set Property | A set property of the global exception. |
Global Forwards Node
Item | Name and tooltip | Description | ||||||
---|---|---|---|---|---|---|---|---|
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:
| |||||||
Global Forward | A global forward node. The following actions are available on the context menu of a Global Forward:
| |||||||
Set Property | A set property of the global forward. |
Action Mappings Node
Item | Name and tooltip | Description | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
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:
| ||||||||||
Action | An action node. The following operations are available on the context menu of an Action:
| ||||||||||
Exception | An exception defined within the action. | ||||||||||
Global Forward | A forward within the action. | ||||||||||
Set Property | A set property of the action, or action's forward, or action's exception. |
Controller Node
Item | Name and tooltip | Description | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Controller | Under this node, manage the properties of the application controller. The following operations are available on the context menu of the Controller node:
|
Message Resources Node
Item | Name and tooltip | Description | ||||||
---|---|---|---|---|---|---|---|---|
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:
| |||||||
Message Resource | A message resource of the application. The following operations are available on the context menu of a Message Resource:
| |||||||
Set Property | A set property of the message resource. |
Plugins Node
Item | Name and tooltip | Description | ||||||
---|---|---|---|---|---|---|---|---|
Plugins | Under this node, manage the application plugins. The following operations are available on the context menu of the Plugins node:
| |||||||
Plugin | A plugin node. The following operations are available on the context menu of a Plugin:
| |||||||
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 |
---|---|
Struts Action | |
Struts JSP page | |
Struts global forward | |
Struts global exception | |