Setting up a new Struts2 Project in Netbeans
Setting up a new Struts2 Project in Netbeans has been answered on Stack Overflow in a step by step way. The easiest way is to create a maven project: Setting up a new Struts2 Project in Netbeans
The general instructions for setting up a Struts2 project are found on the Struts2 site, covering both ant and maven.