Friday, June 27, 2008

Setting Up a Web Application Project :

Choose File > New Project (Ctrl-Shift-N) from the main menu. Under Categories, select Web. Under Projects, select Web Application then click Next.

In Step 2, enter HelloWeb in the Project Name text box. Notice that the Context Path (i.e., on the server) becomes /HelloWeb.

Specify the Project Location to any directory on your computer. For purposes of this tutorial, this directory is referred to as $PROJECTHOME. 

Note: Creating a project in NetBeans IDE 6.1 includes new options which can be left at the default. For example, the Use Dedicated Folder for Storing Libraries checkbox may be left unselected.
If you are using NetBeans IDE 6.1, Click Next; otherwise continue to step 5. 

Select the server to which you want to deploy your application. Only servers that are registered with the IDE are listed. 

Select the version of Java EE you want to use with your application and click Next.

In the Frameworks panel, click Finish to create the project. 

The IDE creates the $PROJECTHOME/HelloWeb project folder. The project folder contains all of your sources and project metadata, such as the project's Ant build script.

The HelloWeb project opens in the IDE. The welcome page, index.jsp, opens in the Source Editor in the main window. You can view the project's file structure in the Files window (Ctrl-2), and its logical structure in the Projects window (Ctrl-1)


No comments: