<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Web2.0 Tutorials &#187; web application</title>
	<atom:link href="http://www.zulutown.com/blog/tag/web-application/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.zulutown.com/blog</link>
	<description>All the Guides You Need to Become a Web2.0 Expert</description>
	<lastBuildDate>Mon, 13 Jul 2009 07:50:00 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Java EE Web Application with Eclipse Ganymede</title>
		<link>http://www.zulutown.com/blog/2009/01/27/java-ee-web-application-with-eclipse-ganymede/</link>
		<comments>http://www.zulutown.com/blog/2009/01/27/java-ee-web-application-with-eclipse-ganymede/#comments</comments>
		<pubDate>Tue, 27 Jan 2009 21:13:15 +0000</pubDate>
		<dc:creator>Zulutown Webmaster</dc:creator>
				<category><![CDATA[Eclipse]]></category>
		<category><![CDATA[Java EE]]></category>
		<category><![CDATA[ganymede]]></category>
		<category><![CDATA[war]]></category>
		<category><![CDATA[web application]]></category>

		<guid isPermaLink="false">http://www.zulutown.com/blog/?p=45</guid>
		<description><![CDATA[First of all setup Eclipse Ganymede for Java EE and add to it a Tomcat6 server, as described in my previous tutorial.
Choose, from the File menu New, Dynamic Web Project in the option panel, give a name to the project (i.e. Struts2-Rest), choose a Target Runtime (that you should have already defined, in my case, [...]]]></description>
			<content:encoded><![CDATA[<p>First of all setup Eclipse Ganymede for Java EE and add to it a Tomcat6 server, as described in my previous tutorial.</p>
<p>Choose, from the <em>File</em> menu <em>New, Dynamic Web Project</em> in the option panel, give a name to the project (i.e. <em>Struts2-Rest</em>), choose a Target Runtime (that you should have already defined, in my case, Apache Tomcat v.6.0) and click Next.</p>
<div id="attachment_46" class="wp-caption aligncenter" style="width: 310px"><img class="size-medium wp-image-46" title="New Dynamic Web Project" src="http://www.zulutown.com/blog/wp-content/uploads/2009/01/new-dynamic-web-project-300x288.png" alt="New Dynamic Web Project" width="300" height="288" /><p class="wp-caption-text">New Dynamic Web Project</p></div>
<p>Here you can define the web application context root, that&#8217;s the relative path where it will be accessibile, if you choose <code>Struts2-Rest</code> as context root, your application will be accessible on <code>http://www.yourserver.com/Struts2-Rest</code> or  <code>http://localhost:8080/Struts2-Rest</code> if you use the default Tomcat configuration provided by Eclipse (with the Tomcat HTTP Connector on the port 8080)</p>
<p>The <em>Content Directory</em> parameters defines the directory inside your project where is located the &#8220;root&#8221; of the .war you&#8217;re going to generate, use the default <code>WebContent</code> directory.</p>
<p>And, obviously, <em>Java Source Directory</em> defines the directory where your Java sources will be stored. Just for your information, after compilation, the generated <code>.class</code> files are automatically moved by Eclipse into <code>WebContent/WEB-INF/classes</code>.</p>
<div id="attachment_47" class="wp-caption aligncenter" style="width: 310px"><img class="size-medium wp-image-47" title="New Dynamic Web Project - Web Module" src="http://www.zulutown.com/blog/wp-content/uploads/2009/01/new-dynamic-web-project-web-module-300x288.png" alt="New Dynamic Web Project - Web Module" width="300" height="288" /><p class="wp-caption-text">New Dynamic Web Project - Web Module</p></div>
<p>Just click finish. Your brand new project will appear in the <em>Project Explorer</em></p>
<div id="attachment_48" class="wp-caption aligncenter" style="width: 310px"><img class="size-medium wp-image-48" title="Project Explorer - New Web Project Created" src="http://www.zulutown.com/blog/wp-content/uploads/2009/01/web-project-created-300x195.png" alt="Project Explorer - New Web Project Created" width="300" height="195" /><p class="wp-caption-text">Project Explorer - New Web Project Created</p></div>
<p>The Deployment Descriptor is obviously associated with the <em>web.xml</em> file. The Java Resources (<code>src</code>) contains your source code, and <code>WebContent</code> contains all the  <code>.jsp</code> files, the static contents (images, css, javascripts) and the WEB-INF directory of your .war that will contain the compiled classes (in <code>/WEB-INF/classes</code>) and the libraries (in <code>/WEB-INF/lib</code>).</p>
]]></content:encoded>
			<wfw:commentRss>http://www.zulutown.com/blog/2009/01/27/java-ee-web-application-with-eclipse-ganymede/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
