As a web project runs on an HTTP server, a new server should be setup to hold the web project.
Download Tomcat 7.0 here. Download the core Zip version, and unzip it to a directory (remember this directory). In your eclipse, create a new Server.
Select the directory where you unzipped the tomcat.
Run the project on server, and you should have a welcome page as follows:
<pre><code> String foo = "bar"; </code></pre>