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 Sun Java System Web Server 7.0.
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.