IntelliJ IDEA 14.0.0 Web Help

Struts Framework

IntelliJ IDEA supports the Struts framework for creating Java EE and Web Applications.

Struts support is enabled through the dedicated Web and Struts facets. The dedicated facets that contain settings, configuration file paths, and validation rules determine the structure of the module so that IntelliJ IDEA detects how to treat the module contents.

  • A Struts facet can be only created as a child of aWeb facet.
  • Only one Struts facet is allowed per module.

IntelliJ IDEA provides the following support of the Struts framework:

  • Automatic creation of the specific module structure and the Web application deployment descriptor web.xml based on the dedicated Web facet.
  • Downloading and adding the necessary libraries automatically and creating the Struts application configuration file struts-config.xml based on the dedicated Struts facet.
  • Coding assistance, including code completion, syntax and error highlighting, documentation lookup, and refactoring.
  • Go to Symbol and support for Actions.
  • Code inspections.
  • Structure tool window with native Struts application structure navigation and Struts actions.
  • A Struts Assistant tool window that provides facilities to manage Struts elements.

To develop a web application using struts, follow these general steps

  1. Enable Struts support.
  2. Create and edit the Struts elements and their interaction.
  3. Create and edit tiles.
  4. Create and edit validators.
  5. Populate your application with the necessary classes.
  6. Deploy and run your application.

See Also

Last modified: 4 December 2014
comments powered by Disqus