blob: 109bf8b16a85f0b33c20979fed6d803c61387c51 [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>
<link rel="stylesheet" type="text/css" href="../../com.ibm.help.doc/swg_info_common.css" />
<title>Importing Web archive (WAR) files</title>
<script language="JavaScript">
function popup_window( url, id, width, height )
{
popup = window.open( url, id, 'toolbar=no,scrollbars=no,location=no,statusbar=no,menubar=no,resizable=no,width=' + width + ',height=' + height + ',left=,top=' );
popup.focus();
}
</script><script language="JavaScript" src="help/liveHelp.js"></script></head>
<body id="twimpwar"><a name="twimpwar"><!-- --></a>
<h1 class="topictitle1">Importing Web archive (WAR) files</h1>
<div><p>A Web Archive (WAR) file is a portable, packaged Web application
that you can import into your workspace. </p>
<p> <b>Note</b>: if you want
to work with an existing workbench Web project or share Web projects, we highly
recommend that you use the <a href="../../com.ibm.etools.j2eeapp.doc/topics/tjsharing.html"> Project Interchange</a> feature, as this feature preserves
all your metadata. </p>
<p> Before importing a WAR file, you should first
determine if the WAR file contains needed Java™ source files. When importing a WAR
file into an existing Web project, the imported Web deployment descriptor
files are either not changed or overwritten by the ones included in the imported
WAR file, based on your response to the prompt that is provided. In either
case, this action does <i>not</i> represent a merging of the two sets of deployment
descriptors. </p>
<p>To import the Web project resources in a WAR file into
your workspace, complete the following steps:</p>
</div>
<ol><li class="skipspace"><span>Select <span><span class="menucascade"><span class="uicontrol">File</span> &gt; <span class="uicontrol">Import</span></span></span>.</span></li>
<li class="skipspace"><span> In the Import dialog, select <span><span class="uicontrol">WAR file</span></span> and
then click <span><span class="uicontrol">Next</span></span>. </span></li>
<li class="skipspace"><span>Locate the WAR file that you want to import using the <span><span class="uicontrol">Browse</span></span> button.</span></li>
<li class="skipspace"><span> The wizard assumes you want to create a new Web project with the
same name as the WAR file. If you accept this choice, the project will be
created with the same servlet version as specified by the WAR file and in
the same location. If you want to override these settings, you can click <b>New</b> and
specify your new settings in the Dynamic Web Project wizard.</span> <p>If
you want to import the WAR file into an existing Web project, you can select
the project from the Web project drop-down list. Note that if you select an
existing project, you must decide whether you want to select the setting to <b>overwrite
existing resources without warning</b></p>
</li>
<li class="skipspace"><span>Click <span><span class="uicontrol">Finish</span></span> to populate the Web
project.</span></li>
</ol>
<!-- <div><p><b class="relconceptshd">Related concepts</b><br />
<a href="../../org.eclipse.wst.webtoolscore.doc.user/topics/cwwarovr.html">Web archive (WAR) files</a><br />
<a href="../../org.eclipse.wst.wrd.annotation.doc.user/topics/coverview.html">Annotation-based programming overview</a><br />
</p>
</div>-->
<p>
(C) Copyright IBM Corporation 2000, 2005. All Rights Reserved.
</p>
</body>
</html>