Start the NetBeans.
Select New Project from the File menu.
Select Web in the category list, and in the projects list, select web application. Then click Next.
From the Server drop-down list, select Web Server.
Click Next to complete the web project creation.
Once the project is created, web project is displayed in the Projects tab. You can find all basic files created in the Web Server specific sun-web.xml deployment descriptor .
The web application is now ready to compile, deploy.