The New Web Project with Existing Sources wizard creates a new from an existing web application source folder. You open the
New Web Project with Existing Sources wizard by opening the New
Project wizard and selecting the Web Project with Existing Sources template
from the Web category.
In the Add Existing Sources page, you have to set the following properties:
Location. Specifies the folder that contains the source code for
the web application. You must set the Location to the top-level folder
of the web application. It is where your JSP pages, client-side classes and
archives, and static web resources, such as images, are stored.
Project Name. Specifies the display name of the project. This name
is also used to create the project folder.
Project Folder. Specifies the folder where you want to store the
project metadata and source code.
Add to Enterprise Application. Lets you specify an existing enterprise application
to which the web application will be added as a module. If you do not add it here,
you can do so later by expanding the enterprise application project node and
right-clicking the J2EE Modules node.
Server. Specifies the web application's server. Only servers that are
registered with the IDE
are available to be selected here:
For versions of the IDE that are bundled only with the Tomcat Web Server,
the Tomcat Web Server is automatically registered in the IDE.
For versions of the IDE that are bundled with both the Tomcat Web Server
and the Sun Java System Application Server, both servers are automatically registered in the IDE.
J2EE Version. Specifies the J2EE level against which your web application
will run.
Context Path. Specifies a way to distinguish resources in one web
application from resources in others that are deployed on the same server instance.
The context of an application determines the URL namespace of the contents of the web
application. When a web application's context property value is set, you access the web application
at http://hostname:port/context/servlet_or_jsp. For example, with the property value
set to /HelloWeb, you access the web application at http://hostname:port/HelloWeb/index.jsp.
Source Level Recommendations. One of the following checkboxes will appear
if JDK 1.5 is set as the default platform in the
Java Platform Manager.
The J2EE 1.4 and J2EE 1.3 specifications do not recommend JDK 1.5. Therefore, if you want
to create a portable application, select the appropriate checkbox:
Use JDK 1.4 and Set Source Level to 1.4. This checkbox appears if
JDK 1.4 is available in the
Java Platform Manager. Select this checkbox to set both your JDK level and your source level to 1.4.
Set Source Level to 1.4. This checkbox appears if JDK 1.4 is not available
in the Java Platform Manager. Select this checkbox so that at least your source level is set to 1.4.
Set as Main Project. Sets the newly created project as the main
project.
When you click Next, you can specify the location of your web pages, Java sources,
and libraries. When you click Finish, the folder specified as the Location property
is used to determine where the web pages, Java sources and libraries are found. The
project is created on your computer and opened in
the IDE. You can view its logical structure in the Projects window and its file
structure in the Files window.