Net beans Environment Setup
Step 1:- First of all you need to install th enet beans from the net beans site https://netbeans.org/downloads/ Then follow these few simple steps to setup net beans for your struts 2 application
Now Create New Project in file window

Step 2:- Select Java Web and then >next

Step 3:- In this step you need to named ur project in the following way.
Step 4:- Select your preferred server.

Step 5:- Finish the Project.

Step 6:- Add the struts 2 jar files in lib.

Now u can start development of struts 2 in net beans.