blob: c84fd816cbf57c023f42b431259e2eaccd4f227f [file]
<html>
<head>
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" href="../../../../../..//default_style.css" type="text/css">
<link rel="stylesheet" href="../../../../../..//webtools/wtp.css" type="text/css">
<title>Creating a Dynamic Web Project</title>
</head>
<body>
<table width="100%" cellspacing="5" cellpadding="2" border="0">
<tbody>
<tr>
<td width="60%" align="left"><font class="indextop">Creating Dynamic Web Project</font>
<br>
<font class="indexsub">Creating a Dynamic Web Project</font></td><td width="40%"><img width="207" hspace="50" height="129" align="middle" src="../../../../../..//webtools/images/wtplogosmall.jpg"></td>
</tr>
</tbody>
</table>
<table width="100%" cellspacing="5" cellpadding="2" border="0">
<col width="16">
<col width="*">
<tbody>
<tr>
<td valign="top" align="right">&nbsp;</td><td valign="top">
<p>
<b>By Kathy Chan</b>
<br>
November 22, 2005
<br>
<br>
</p>
</td>
</tr>
<tr>
<td valign="top" align="right">&nbsp;</td><td valign="top">
<br>
</td>
</tr>
<tr>
<td valign="top" bgcolor="#0080c0" align="left" colspan="2"><b><font face="Arial,Helvetica" color="#ffffff">Creating a Web project targeting Tomcat 5.0</font></b></td>
</tr>
<tr>
<td valign="top" align="right">&nbsp;</td><td valign="top">
<br>
</td>
</tr>
<tr>
<td valign="top" align="right">&nbsp;</td><td valign="top">
<ol>
<li>
Open
<b>
File -&gt; New -&gt; Other... -&gt; Web -&gt;
Dynamic Web Project
</b>
to create a dynamic Web project.
</li>
<li>
Click
<b>Next</b>
.
</li>
<li>
Enter the name of the Web project into the
<b>Project Name</b>
field.
</li>
<li>Proceed to one of the following steps:</li>
<ul>
<li>No server runtime installed.</li>
<ul>
<li>
If you have not previously configured a server
runtime, use the
<b>New...</b>
button beside the
<b>Target runtime</b>
field to do so.
</li>
<li>
Proceed to next step depending on whether target
runtime is automatically selected.
</li>
</ul>
<li>
<b>Target runtime</b> automatically selected</li>
<ul>
<li>
If you had previously installed a Tomcat 5.0
server runtime and the workbench default JRE is
set to JRE 1.4, then the
<b>Target runtime</b>
field should be automatically set to
<b>Apache Tomcat v5.0</b>
.
</li>
<br>
<img border="0" SRC="resources/WebProj1.jpg">
<br>
<li>
Click
<b>Finish</b>
.
</li>
</ul>
<li>
<b>Target runtime</b> field is blank</li>
<ul>
<li>
Click
<b>Next</b>
to go to the
<b>Add/Remove Project Facet</b>
page.
</li>
<li>
Click on the Java version field to select
<b>1.4</b>
.
</li>
<br>
<img border="0" SRC="resources/WebProj2.jpg">
<br>
<li>
Click back on the Java field. When the Apache
Tomcat v5.0 shows up in the
<b>Runtimes</b>
pane, click on the
<b>Bind</b> button
to bind to that runtime.
</li>
<br>
<img border="0" SRC="resources/WebProj3.jpg">
<br>
<li>
Click
<b>Finish</b>
.
</li>
</ul>
</ul>
<li>
Say
<b>Yes</b>
to accept the license agreement.
</li>
<li>
Say
<b>Yes</b>
to open the J2EE perspective and you will see the Web
project you created listed under
<b>Dynamic Web Projects</b>
in the
<b>Project Explorer</b>
view. Expand the Web project to see its contents.
</li>
</ol>
</td>
</tr>
<tr>
<td valign="top" align="right">&nbsp;</td><td valign="top">
<br>
</td>
</tr>
<tr>
<td valign="top" bgcolor="#0080c0" align="left" colspan="2"><b><font face="Arial,Helvetica" color="#ffffff">Creating a Web project targetting Tomcat 5.5</font></b></td>
</tr>
<tr>
<td valign="top" align="right">&nbsp;</td><td valign="top">
<br>
</td>
</tr>
<tr>
<td valign="top" align="right">&nbsp;</td><td valign="top">
<p>Follow steps similar to the above to create a Web project targeting Tomcat 5.5 except that you
will have to pick Java version 5.0 in the
<b>Add/Remove Project Facet</b>
page.</p>
</td>
</tr>
</tbody>
</table>
</body>
</html>