blob: f1c291a07972b9e906f15a652c7c3ee2ab3ba04c [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en-us" xml:lang="en-us">
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<meta name="copyright" content="Copyright (c) 2000, 2009 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 https://www.eclipse.org/legal/epl-2.0/. Contributors: IBM Corporation - initial API and implementation" />
<meta name="DC.rights.owner" content="(C) Copyright 2000, 2009" />
<meta content="public" name="security" />
<meta content="index,follow" name="Robots" />
<meta http-equiv="PICS-Label" content='(PICS-1.1 "http://www.icra.org/ratingsv02.html" l gen true r (cz 1 lz 1 nz 1 oz 1 vz 1) "http://www.rsac.org/ratingsv01.html" l gen true r (n 0 s 0 v 0 l 0) "http://www.classify.org/safesurf/" l gen true r (SS~~000 1))' />
<meta content="task" name="DC.Type" />
<meta name="DC.Title" content="Creating Web projects" />
<meta name="abstract" content="You can use wizards to create Web modules in your Java EE project." />
<meta name="description" content="You can use wizards to create Web modules in your Java EE project." />
<meta content="Java EE, Web module, creating" name="DC.subject" />
<meta content="Java EE, Web module, creating" name="keywords" />
<meta scheme="URI" name="DC.Relation" content="../topics/ph-projects.html" />
<meta content="XHTML" name="DC.Format" />
<meta content="creatingawebproject" name="DC.Identifier" />
<meta content="en-us" name="DC.Language" />
<link href="../../org.eclipse.wst.doc.user/common.css" type="text/css" rel="stylesheet" />
<title>Creating Web projects</title>
</head>
<body id="creatingawebproject"><a name="creatingawebproject"><!-- --></a>
<h1 class="topictitle1">Creating Web projects</h1>
<div><p>You can use wizards to create Web modules in your Java EE project.</p>
<ol>
<li class="stepexpand"><span>In the Java EE perspective,
right-click your enterprise application project and select <span class="menucascade">
<span class="uicontrol">New</span> &gt; <span class="uicontrol">Dynamic Web project</span>
</span>. The Dynamic Web project wizard opens.</span></li>
<li class="stepexpand"><span>In the <span class="uicontrol">Name</span> field, type a name for
the Web project. To change the default <span class="uicontrol">Project location</span>,
click the <span class="uicontrol">Browse</span> button to select a new location.</span>
<p>If you specify a non-default project location that is already
being used by another project, the project creation fails.</p>
</li>
<li class="stepexpand"><span>The <span class="uicontrol">Target runtime</span> field is pre-populated
with the selection from the enterprise project.</span></li>
<li class="stepexpand"><span>In the <span class="uicontrol">Dynamic Web Module version</span> field,
accept the default value of <span class="uicontrol">2.5</span>.</span></li>
<li class="stepexpand"><strong>Optional: </strong><span>Select a pre-defined project configuration
from the <span class="uicontrol">Configurations</span> drop-down list.</span>
</li>
<li class="stepexpand"><strong>Optional: </strong><span>If you want to modify the configuration
details, click <span class="uicontrol">modify</span>:</span> </li>
<li class="stepexpand"><strong>Optional: </strong><span>Select one or more project facets
from the <span class="uicontrol">Project Facets</span> list. To specify server
runtime environments, click <span class="uicontrol">Show Runtimes</span> and
select one or more runtimes. After making your selections, you can
save your custom configuration by clicking <span class="uicontrol">Save</span>.</span>
</li>
<li class="stepexpand"><strong>Optional: </strong><span>Select the <span class="uicontrol">Add project
to an EAR module</span> check box to add the new module to an
enterprise module (EAR) project.</span> Type a new project name
or select an existing enterprise module project from the drop-down
list in the <span class="uicontrol">EAR Project Name</span> combination box.
Or, click <span class="uicontrol">New</span> to launch the New EAR module
Project wizard.</li>
<li class="stepexpand"><span>Click <span class="uicontrol">Next</span>.</span></li>
<li class="stepexpand"><span>On the Dynamic Web Project page, in the <span class="uicontrol">Context
Root:</span> field, specify a folder for your source files or
accept the default value.</span></li>
<li class="stepexpand"><span>In the <span class="uicontrol">Content Directory:</span> field,
specify a folder for your source files or accept the default value
(WebContent).</span></li>
<li class="stepexpand"><span>In the <span class="uicontrol">Java Source Directory</span> field,
specify a folder for your source files or accept the default value
(src).</span></li>
<li class="stepexpand"><span>In the <span class="uicontrol">Output Folder:</span> field, specify
a folder for your output files or accept the default value (WebContent/WEB-INF/classes).</span>
</li>
<li class="stepexpand"><span>Click <span class="uicontrol">Finish</span>.</span></li>
</ol>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="../topics/ph-projects.html" title="The workbench can work with many different types of projects. The following topics cover creating and managing some of the types of projects related to J2EE development.">Working with projects</a></div>
</div>
</div>
</body>
</html>