| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE html | |
| PUBLIC "-//IETF//DTD HTML 4.0//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
| <html><head> | |
| <!-- /******************************************************************************* | |
| * Copyright (c) 2000, 2006 IBM Corporation and others. | |
| * All rights reserved. This program and the accompanying materials | |
| * are made available under the terms of the Eclipse Public License v1.0 | |
| * which accompanies this distribution, and is available at | |
| * http://www.eclipse.org/legal/epl-v10.html | |
| * | |
| * Contributors: | |
| * IBM Corporation - initial API and implementation | |
| *******************************************************************************/ --> | |
| <link rel="stylesheet" type="text/css" href="../../org.eclipse.wst.doc.user/common.css"/> | |
| <title>Creating a dynamic Web project</title> | |
| </head> | |
| <body id="twcreprj"><a name="twcreprj"><!-- --></a> | |
| <h1 class="topictitle1">Creating a dynamic Web project</h1> | |
| <div><p>You create and maintain the resources for your Web applications | |
| in Web projects.</p> | |
| <div class="section"> <p> Unlike with <a href="twcresta.html">static</a> Web | |
| projects, dynamic Web projects enable you to create resources such as JavaServer | |
| Pages and servlets.</p> | |
| <p>To create a new dynamic Web project, complete the | |
| following steps:</p> | |
| </div> | |
| <ol><li><span>Open the J2EE perspective.</span></li> | |
| <li><span>In the Project Explorer, right click on Dynamic Web Projects, and | |
| select <span class="menucascade"><b>New</b> > <b>Dynamic Web Project</b></span> from the context menu. The New Dynamic Web Project wizard starts.</span></li> | |
| <li><span>Follow the project wizard prompts.</span></li> | |
| </ol> | |
| <div class="section"><p><strong>General Information</strong></p> | |
| <dl><dt class="dlterm">Project Facets </dt> | |
| <dd>A facet represents a unit of functionality in a Web project. For example, | |
| the Dynamic Web Module facet enables the project to be deployed as a dynamic | |
| Web module. A brief description of a project facet appears in the wizard | |
| when you select it. Note that in many instances, you can view the constraints | |
| for a project facet by right clicking on the facet and selecting project constraints | |
| from the pop up menu. </dd> | |
| <dt class="dlterm">Target Runtime</dt> | |
| <dd>Use this field to define a new installed runtime environment. Runtimes | |
| are used at build time to compile projects.</dd> | |
| <dt class="dlterm">Enterprise Application project (EAR Project)</dt> | |
| <dd>A new or existing Enterprise Application project (EAR Project) must be | |
| associated with your new Web project to facilitate deployment. If you want | |
| to override the default settings for the Enterprise Application project, you | |
| can do so using the wizard. When your Web project is created at the end of | |
| the wizard, the new Enterprise Application project is also created with the | |
| name specified in the EAR project field. Note that the default is the name | |
| of the web project appended with EAR (unless the ear project was selected | |
| when you opened the wizard.)</dd> | |
| <dt class="dlterm">Context Root</dt> | |
| <dd>The context root is the Web application root, which is the top-level directory | |
| of your application when it is deployed to the Web server. You can change | |
| the context root after you create a project using the project Properties dialog, | |
| which you access from the project's pop-up menu. The context root can also | |
| be used by the links builder to ensure that your links remain ready to publish | |
| as you move and rename files inside your project.</dd> | |
| </dl> | |
| </div> | |
| </div> | |
| <div><div class="relconcepts"><strong>Related concepts</strong><br> | |
| <div><a href="ccstatic.html">Static Web projects</a></div> | |
| <div><a href="ccwebprj.html">Dynamic Web projects and applications</a></div> | |
| </div> | |
| <div class="reltasks"><strong>Related tasks</strong><br> | |
| <div><a href="tjcrejsp.html">Creating JavaServer Pages (JSP) files</a></div> | |
| </div> | |
| </div> | |
| </body></html> |