JBoss.orgCommunity Documentation

Chapter 4. Modules

4.1. When Importing a Struts Project
4.2. Editing Modules in an Existing Project
4.3. Adding New Modules

JBoss Tools supports working with Struts projects that have multiple modules. You can easily do the following:

Now, let's discuss this functionality in more detail.

During Struts project import, if the project has multiple modules, you will see a screen with all existing modules. You can select each module and edit its details.


To edit modules in an existing project, right click the project in Web Project view and select JBoss Tools StrutsModules Configuration (or right click the project in Package Explorer view and select ConfigureModules Configuration).


You will see the same screen as above where you will be able to select a module and edit its details.


Adding a new module is very simple. First switch to Web Project view. Expand your project to the Configuration folder. Under that folder you should see the current modules. Right click on Configuration and select NewStruts Config.


You will see the screen below. You can specify a new module name and also add the new Struts configuration file to the web.xml file.