Download free trial

Struts 2 Project Support



Struts 2 Projects

MyEclipse 8 introduces support for web application development with the Apache Struts 2 framework. Struts 2 capabilities can be added to any MyEclipse JEE 5 web project.

We include Struts 2.1.8 libraries grouped by functionality into several containers which can be easily added to your project when adding Struts 2 support or at any later time.

Struts 2 Wizards

Advanced Struts 2 wizards can be used to create new Struts 2 elements or edit existing elements. These wizards are backed by a detailed model of your Struts 2 project and will provide input assistance and validation where possible. The Struts 2 model is automatically updated when you edit a Struts 2 configuration file or add / remove libraries containing Struts 2 configuration files to your project.

The Package wizard allows you to create new packages or edit existing packages.

Use the Package Selection dialog to select one or more packages you wish to extend from.

Model based validation will detect problems in your package definition.

The action wizard allows you to create or edit Struts 2 actions.

Just like the package wizard, detected problems in your action definition will be reported immediately in the wizard. For instance, your action name will be compared with the names of other actions that are declared in the same namespace (i.e. the namespace referenced in your intended target package)

Use the Result wizard to add new action results directly to existing actions or edit existing results.

Problems detected are reported in the wizard.

Struts 2 Configuration Content-Assist

MyEclipse 8 includes the MyEclipse Struts 2 Editor, which makes editing Struts 2 configuration files a lot easier. Content assist is provided where possible. 

Package name content assist

Action name content assist

Action class content assist

Result type content assist

Namespace content assist

MyEclipse 8.0 also adds content assist support for interceptor references and resources.

The editor includes a custom Struts 2 outline mode, allowing you to quickly analyze the structure of your Struts configuration file as opposed to using the regular XML outline.

Struts 2 Outline Standard XML Outline
Struts 2.1.8:

MyEclipse 8.0 Milestone 2 upgraded Struts 2 support to Struts 2.1.8 from 2.1.6.

Struts 2 Hyperlink Navigation

Hyperlink navigation is supported for several Struts 2 elements. Simply press Ctrl and hover over the text to display a hyperlink which will take you the location at which the element is declared.

Package navigation

Class navigation

Interceptor navigation

Namespace navigation

Action name navigation

Location navigation