blob: e1710cb03a12944d6dd61982257c1dd4723ee97a [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>
<head>
<!-- /*******************************************************************************
* Copyright (c) 2000, 2005 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 static Web project</title>
</head>
<body id="twcresta"><a name="twcresta"><!-- --></a>
<h1 class="topictitle1">Creating a static Web project</h1>
<div><p> In the workbench, you create and maintain resources for Web applications
in Web projects. If you want to create a static, content-based Web application
that contains no dynamic elements, such as JSP files or servlets, use the <span><span class="uicontrol">New
Static Web Project</span></span> wizard. If you later decide that you want
to add dynamic elements to this project, you can <a href="twpcnvrt.html">convert the project to a dynamic Web project</a>.</p>
<p> Note
that static web projects will not run in the provided WebSphere<sup>®</sup> test environments,
but these projects can be previewed in a browser directly from the workspace.
</p>
<p>To create a new static Web project, open the Web perspective and complete
the following steps:</p>
</div>
<ol><li class="skipspace"><span>Select <span class="menucascade"><span class="uicontrol">File</span> &gt; <span class="uicontrol">New</span> &gt; <span class="uicontrol">Static Web Project</span></span>. </span> <p>The <span class="uicontrol">New
Static Web Project</span> wizard appears.</p>
</li>
<li class="skipspace"><span>Provide a name for the Web project.</span> <p></p>
</li>
<li class="skipspace"><span>Accept the default value in the <span class="uicontrol">Project location</span> field
(this is where your project is stored in your file system), or click <span class="uicontrol">Browse</span> to
choose a location from the file system.</span>
</li>
<li class="skipspace"><span>You have two options to proceed: </span> <ul><li>If you want to accept the defaults associated with a static Web project,
select <span class="uicontrol">Finish</span> .</li>
<li>If you want to specify or customize the project options, select <span class="uicontrol">Next</span>.
The following step assumes you have chosen this option.</li>
</ul>
</li>
<li class="skipspace"><span>Select one or more of the <span class="uicontrol">Web Project features</span>. </span> <p>The default selects the <span class="uicontrol">Default style sheet (CSS)</span> check
box, which creates a default CSS file (called Master.css) for the project.</p>
</li>
<li class="skipspace"><span>Select <b>Next</b>, and then select <span class="uicontrol">Use a default Page
Template for the Web Site</span> if you want your entire Web site to
share a common page template.</span> <p>If you want to use one of the
sample templates provided, select <b>Sample Page Template</b> and then choose
one of the templates shown in the <b>Thumbnail</b> box. If you want to use
a template of your own, select <b>User-defined Page Template</b> and then
click <b>Browse</b> to select the template from the file system. </p>
</li>
<li class="skipspace"><span>Click <b>Finish</b>. The wizard creates an empty project containing
the appropriate folder structure, which you can see in the Project Explorer.</span></li>
</ol>
<div class="skipspace"><p>You can now begin creating or importing content for your Web project
using Web resource editors, the
New File wizards, or the Import wizards available from the <span class="uicontrol">File</span> menu.</p>
</div>
<div><p><b class="relconceptshd">Related concepts</b><br />
<a href="ccstatic.html">Static Web Projects</a><br />
</p>
<p><b class="reltaskshd">Related tasks</b><br />
<a href="../../org.eclipse.wst.publishing.server.ui.doc.user/topics/tstatsrv.html">Publishing static Web projects to a static Web publishing
server</a><br />
</p>
</div>
</html>