-
Create a Java module from scratch.
On the first page of the wizard, select Java Module, not Web Module. (The Web module type is for developing web applications using programming languages other than Java, for example, PHP, or JavaScript, or markup languages.)
- On the fourth, Select the desired technologies, page of the wizard, select the Web Application check box.
- Select the Struts 2 check box.
- Complete a list of configuration files to validate, if necessary.
IntelliJ IDEA configures the new module as follows:
- Creates a web node with a web application descriptor web.xml.
- Creates a Struts 2 configuration file struts.xml and adds it to the src node.
- Adds the required Struts 2 libraries.

