JBoss.org Community Documentation

Chapter 3. Editors

3.1. Graphical Editor for Struts Configuration Files
3.1.1. Diagram Mode
3.1.2. Tree Mode
3.1.3. Source Mode
3.2. Graphical Editor for Tiles Files
3.2.1. Create New Tiles File
3.2.2. Tree Mode
3.2.3. Diagram Mode
3.2.4. Source
3.3. Graphical Editor for Struts Validation Files

The Struts configuration file editor has three modes with different representation of struts-config.xml: Diagram, Tree and Source. The modes can be selected via the tabs at the bottom of the editor. Any changes made in one mode are immediately visible when you switch to any other mode.

When working in Source view, you always have all the following features available:

Find more information about editor features here.

The Tiles configuration file editor has three main modes: Tree, Diagram and Source. The modes can be selected via the tabs at the bottom of the editor. Any changes made in one mode are immediately visible when you switch to any other mode.

When working in Source view, you always have all following features available:

Providing full support for development Struts applications JBoss Tools comes with a visual validation editor. To create a new validation file, right click any folder in Project Explorer and select File > New > Other... from the context menu and then JBoss Tools Web > Struts > Validation File.


The validation editor works with five modes: Formsets, Validators, Constants and standard Tree and Source that you can easily switch over using tabs at the bottom of the editor.

The Formsets mode shows forms and their elements on the left side and the dialogue for defining their validation rules on the right side.


The Constants mode let you set constant values for your validation rules.


The validation file can also be viewed in a Tree mode.


At any point you have full control over the source by switching to the Source mode. Any editing in this mode will immediately be available in other modes of the editor.


You can also open your own custom or Struts-standard validation-rules.xml file.

The Validators mode shows the validation rules for a selected validator. You can of course add your own rules.


Here are the validation rules shown in the Source mode.