Editing Struts configuration files

This documentation explains how to edit a Struts configuration file by using the Struts configuration file editor.

A Struts configuration file is an XML document that describes all or part of a Struts application. To edit a Struts configuration file (for example, struts-config.xml), complete the following steps:

  1. If the Struts configuration file editor is the default editor for the file, double-click on the file name to start the editor. If another editor is the default, select Open with and the Struts configuration file editor.

  2. Click on the appropriate tab at the bottom of the pane. The tabs and their meanings are as follows:

    Action Mappings

    Lets you add, delete, or edit action mappings.

    Global Forwards

    Lets you add, delete, or edit global forwards.

    Form Beans

    Lets you add, delete, or edit form beans.

    Data Sources

    Lets you add, delete, or edit data sources.

    Global Exceptions

    Lets you add, delete, or edit global exceptions.

    Controller

    Lets you add, delete, or edit controller attributes.

    Message Resources

    Lets you add, delete, or edit message resources.

    Plug-ins

    Lets you define plug-ins associated with the configuration file.

    Source

    Lets you edit the XML source of the file.

  3. Complete the desired editing.

  4. Save and close struts-config.xml.

 

Related concepts

Struts and model-view-controller design pattern
Struts configuration files

 

Related tasks

Creating a Struts configuration file
Editing other Struts-relevant resources
Editing Struts resources - overview
Setting preferences for Struts development tools

Feedback