<?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>TechJug &#187; J2EE</title>
	<atom:link href="http://www.techjug.com/index.php/category/j2ee/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.techjug.com</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Sat, 02 Jan 2010 09:26:10 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Eclipse and MyEclipse Proxy Settings</title>
		<link>http://www.techjug.com/index.php/2009/12/eclipse-and-myeclipse-proxy-settings/</link>
		<comments>http://www.techjug.com/index.php/2009/12/eclipse-and-myeclipse-proxy-settings/#comments</comments>
		<pubDate>Tue, 29 Dec 2009 13:04:00 +0000</pubDate>
		<dc:creator>ali</dc:creator>
				<category><![CDATA[J2EE]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[eclipse]]></category>
		<category><![CDATA[IDE]]></category>
		<category><![CDATA[Java IDE]]></category>
		<category><![CDATA[myeclipse]]></category>

		<guid isPermaLink="false">http://www.techjug.com/index.php/2009/12/eclipse-and-myeclipse-proxy-settings/</guid>
		<description><![CDATA[&#160;
If you want to update your Eclipse platform and your machine is behind a proxy, then you need to set your network proxy in order for you Eclipse to download the updates.
You can set the proxy as follows
1- Go to window &#62; preferences
 
 
&#160;
2- Select General &#62; Network Connections. Provide HTTP proxy and port [...]]]></description>
			<content:encoded><![CDATA[<p>&#160;</p>
<p>If you want to update your Eclipse platform and your machine is behind a proxy, then you need to set your network proxy in order for you Eclipse to download the updates.</p>
<p>You can set the proxy as follows</p>
<p>1- Go to <strong>window &gt; preferences</strong></p>
<p> <span id="more-182"></span>
<p><a href="http://www.techjug.com/wp-content/uploads/2009/12/image7.png"><img title="image" style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" height="344" alt="image" src="http://www.techjug.com/wp-content/uploads/2009/12/image_thumb7.png" width="508" border="0" /></a> </p>
<p>&#160;</p>
<p>2- Select <strong>General &gt; Network Connections</strong>. Provide HTTP proxy and port and press OK. Your proxy is set and you can update your Eclipse platform now</p>
<p><strong></strong></p>
<p><a href="http://www.techjug.com/wp-content/uploads/2009/12/image9.png"><img title="image" style="border-right: 0px; border-top: 0px; display: inline; border-left: 0px; border-bottom: 0px" height="484" alt="image" src="http://www.techjug.com/wp-content/uploads/2009/12/image_thumb9.png" width="552" border="0" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.techjug.com/index.php/2009/12/eclipse-and-myeclipse-proxy-settings/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Tutorial: Java/JSP Hello World Web Application in Eclipse</title>
		<link>http://www.techjug.com/index.php/2009/12/javajsp-hello-world-web-application-in-eclipse/</link>
		<comments>http://www.techjug.com/index.php/2009/12/javajsp-hello-world-web-application-in-eclipse/#comments</comments>
		<pubDate>Sun, 20 Dec 2009 12:15:08 +0000</pubDate>
		<dc:creator>ali</dc:creator>
				<category><![CDATA[J2EE]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[eclipse]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[JSP]]></category>
		<category><![CDATA[tomcat]]></category>

		<guid isPermaLink="false">http://www.techjug.com/index.php/2009/12/javajsp-hello-world-web-application-in-eclipse/</guid>
		<description><![CDATA[Pre-Requisites 

Eclipse : I am using Eclipse 3.4 (Ganymede) for this application. You can download the latest version from here 
Tomcat : download from here 

&#160;
Level: beginners
This application is for newbie how want to start java web development. In this application we will create a web application in Eclipse platform and the application will be [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Pre-Requisites</strong> </p>
<ul>
<li>Eclipse : I am using Eclipse 3.4 (Ganymede) for this application. You can download the latest version from <a href="http://www.eclipse.org/downloads/">here </a></li>
<li>Tomcat : download from <a href="http://tomcat.apache.org/download-60.cgi">here </a></li>
</ul>
<p>&#160;</p>
<p><strong>Level: beginners</strong></p>
<p>This application is for newbie how want to start java web development. In this application we will create a web application in Eclipse platform and the application will be deployed on Tomcat web server. This application will only show some output on the JSP page.</p>
<p>Lets start with our application</p>
<p> <span id="more-131"></span>
<p>1- Open Eclipse</p>
<p>2- Go to <strong>New &gt; Other</strong></p>
<p>&#160;</p>
<p><strong></strong></p>
<p><strong><a href="http://www.techjug.com/wp-content/uploads/2009/12/others.jpg"><img title="others" style="border-top-width: 0px; display: block; border-left-width: 0px; float: none; border-bottom-width: 0px; margin-left: auto; margin-right: auto; border-right-width: 0px" height="320" alt="others" src="http://www.techjug.com/wp-content/uploads/2009/12/others_thumb.jpg" width="445" border="0" /></a> </strong></p>
<p>&#160;</p>
<p>3- Select <strong>Dynamic Web Project</strong></p>
<p><strong></strong></p>
<p><strong></strong></p>
<p><strong></strong></p>
<p><a href="http://www.techjug.com/wp-content/uploads/2009/12/others1.jpg"><img title="others" style="border-top-width: 0px; display: block; border-left-width: 0px; float: none; border-bottom-width: 0px; margin-left: auto; margin-right: auto; border-right-width: 0px" height="324" alt="others" src="http://www.techjug.com/wp-content/uploads/2009/12/others_thumb1.jpg" width="449" border="0" /></a> </p>
<p>&#160;</p>
<p>4- Provide a <strong>project name</strong> and press <strong>Finish</strong></p>
<p>&#160;</p>
</p>
<p><a href="http://www.techjug.com/wp-content/uploads/2009/12/newproject.jpg"><img title="new project" style="border-top-width: 0px; display: block; border-left-width: 0px; float: none; border-bottom-width: 0px; margin-left: auto; margin-right: auto; border-right-width: 0px" height="584" alt="new project" src="http://www.techjug.com/wp-content/uploads/2009/12/newproject_thumb.jpg" width="504" border="0" /></a> </p>
<p>&#160;</p>
<p>5- Following project hierarchy will be created by Eclipse</p>
<p>&#160;</p>
<p><a href="http://www.techjug.com/wp-content/uploads/2009/12/Newprojecthierarchy.jpg"><img title="New project hierarchy" style="border-top-width: 0px; display: block; border-left-width: 0px; float: none; border-bottom-width: 0px; margin-left: auto; margin-right: auto; border-right-width: 0px" height="331" alt="New project hierarchy" src="http://www.techjug.com/wp-content/uploads/2009/12/Newprojecthierarchy_thumb.jpg" width="244" border="0" /></a> </p>
<p>&#160;</p>
<p>6- create a package <strong>jsp </strong>under <strong>WebContent. </strong>Right click WebContent New &gt; Folder </p>
<p>&#160;</p>
<p><a href="http://www.techjug.com/wp-content/uploads/2009/12/jsppackage.jpg"><img title="jsp package" style="border-top-width: 0px; display: block; border-left-width: 0px; float: none; border-bottom-width: 0px; margin-left: auto; margin-right: auto; border-right-width: 0px" height="456" alt="jsp package" src="http://www.techjug.com/wp-content/uploads/2009/12/jsppackage_thumb.jpg" width="660" border="0" /></a> </p>
<p>&#160;</p>
<p>7- Provide a name to the folder and press <strong>Finish</strong></p>
<p>&#160;</p>
<p><a href="http://www.techjug.com/wp-content/uploads/2009/12/jsppackagea.jpg"><img title="jsp packagea" style="border-top-width: 0px; display: block; border-left-width: 0px; float: none; border-bottom-width: 0px; margin-left: auto; margin-right: auto; border-right-width: 0px" height="582" alt="jsp packagea" src="http://www.techjug.com/wp-content/uploads/2009/12/jsppackagea_thumb.jpg" width="504" border="0" /></a> </p>
<p>&#160;</p>
<p>8- Create a new jsp page. Right click jsp folder New &gt; Other and select JSP and press Next</p>
<p>&#160;</p>
<p> <a href="http://www.techjug.com/wp-content/uploads/2009/12/createjsp.jpg"><img title="create jsp" style="border-top-width: 0px; display: block; border-left-width: 0px; float: none; border-bottom-width: 0px; margin-left: auto; margin-right: auto; border-right-width: 0px" height="504" alt="create jsp" src="http://www.techjug.com/wp-content/uploads/2009/12/createjsp_thumb.jpg" width="504" border="0" /></a>
<p>&#160;</p>
<p>&#160;</p>
<p>9- Provide JSP a name and press <strong>Finish</strong></p>
<p>&#160;</p>
<p><a href="http://www.techjug.com/wp-content/uploads/2009/12/providejspname.jpg"><img title="provide jsp name" style="border-top-width: 0px; display: block; border-left-width: 0px; float: none; border-bottom-width: 0px; margin-left: auto; margin-right: auto; border-right-width: 0px" height="527" alt="provide jsp name" src="http://www.techjug.com/wp-content/uploads/2009/12/providejspname_thumb.jpg" width="403" border="0" /></a></p>
<p>&#160;</p>
<p>10-&#160; Put following code in JSP</p>
<p> 
<pre class="java">&nbsp;
&nbsp;
&lt;%@ page language=<span style="color: #ff0000;">&quot;java&quot;</span> contentType=<span style="color: #ff0000;">&quot;text/html; charset=ISO-8859-1&quot;</span>
    pageEncoding=<span style="color: #ff0000;">&quot;ISO-8859-1&quot;</span>%&gt;
&lt;!DOCTYPE html <span style="color: #000000; font-weight: bold;">PUBLIC</span> <span style="color: #ff0000;">&quot;-//W3C//DTD HTML 4.01 Transitional//EN&quot;</span>
<span style="color: #ff0000;">&quot;http://www.w3.org/TR/html4/loose.dtd&quot;</span>&gt;
&lt;html&gt;
&lt;head&gt;
&lt;meta http-equiv=<span style="color: #ff0000;">&quot;Content-Type&quot;</span> content=<span style="color: #ff0000;">&quot;text/html; charset=ISO-8859-1&quot;</span>&gt;
&lt;title&gt;Insert title here&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt; 
&lt;h1&gt; Hello World !!! &lt;/h1&gt;
&nbsp;
&lt;/body&gt;
&lt;/html&gt;
&nbsp;</pre>
<p></p>
<p>11-&#160; The other important file is <strong>web.xml.&#160; </strong>Put the following code in web.xml</p>
<p><br/></p>
<pre class="xml">&nbsp;
&nbsp;
<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;web-app</span> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">&quot;WebApp_ID&quot;</span> <span style="color: #000066;">version</span>=<span style="color: #ff0000;">&quot;2.4&quot;</span> <span style="color: #000066;">xmlns</span>=<span style="color: #ff0000;">&quot;http://java.sun.com/xml/ns/j2ee&quot;</span>
<span style="color: #000066;">xmlns:xsi</span>=<span style="color: #ff0000;">&quot;http://www.w3.org/2001/XMLSchema-instance&quot;</span>
<span style="color: #000066;">xsi:schemaLocation</span>=<span style="color: #ff0000;">&quot;http://java.sun.com/xml/ns/j2ee
 http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd&quot;</span><span style="font-weight: bold; color: black;">&gt;</span></span>
&nbsp;
<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;?xml</span> <span style="color: #000066;">version</span>=<span style="color: #ff0000;">&quot;1.0&quot;</span> <span style="color: #000066;">encoding</span>=<span style="color: #ff0000;">&quot;UTF-8&quot;</span><span style="font-weight: bold; color: black;">?&gt;</span></span>
    <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;display-name<span style="font-weight: bold; color: black;">&gt;</span></span></span>Helloworld<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/display-name<span style="font-weight: bold; color: black;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;welcome-file-list<span style="font-weight: bold; color: black;">&gt;</span></span></span>
        <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;welcome-file<span style="font-weight: bold; color: black;">&gt;</span></span></span>/jsp/helloworld.jsp<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/welcome-file<span style="font-weight: bold; color: black;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/welcome-file-list<span style="font-weight: bold; color: black;">&gt;</span></span></span>
<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/web-app<span style="font-weight: bold; color: black;">&gt;</span></span></span>
&nbsp;</pre>
<p><br/></p>
<p>12- Now we have to configure <strong>Tomcat Web Server.</strong>&#160; Go to Window &gt; Preferences &gt; Server &gt; Runtime Environment and press Add.</p>
<p>&#160;</p>
<p><a href="http://www.techjug.com/wp-content/uploads/2009/12/addserver.jpg"><img title="add server" style="border-top-width: 0px; display: block; border-left-width: 0px; float: none; border-bottom-width: 0px; margin-left: auto; margin-right: auto; border-right-width: 0px" height="548" alt="add server" src="http://www.techjug.com/wp-content/uploads/2009/12/addserver_thumb.jpg" width="631" border="0" /></a> </p>
<p>&#160;</p>
<p>13- On the next screen press Apache &gt; Apache Tomcat v6.0, press <strong>Next </strong></p>
<p>&#160;</p>
<p><a href="http://www.techjug.com/wp-content/uploads/2009/12/selecttomcat6.jpg"><strong></strong></a><a href="http://www.techjug.com/wp-content/uploads/2009/12/selecttomcat61.jpg"><img title="select tomcat 6" style="border-top-width: 0px; display: block; border-left-width: 0px; float: none; border-bottom-width: 0px; margin-left: auto; margin-right: auto; border-right-width: 0px" height="537" alt="select tomcat 6" src="http://www.techjug.com/wp-content/uploads/2009/12/selecttomcat6_thumb.jpg" width="442" border="0" /></a></a></a></p>
<p><strong></strong></p>
<p>
  <br />14-&#160; On the next screen <strong>Browse</strong> to the Apache tomcat home directory and press <strong>Finish </strong>and then OK.</p>
<p>&#160;</p>
<p><strong>&#160;<a href="http://www.techjug.com/wp-content/uploads/2009/12/browsetomcat.jpg"><img title="browse tomcat" style="border-top-width: 0px; display: block; border-left-width: 0px; float: none; border-bottom-width: 0px; margin-left: auto; margin-right: auto; border-right-width: 0px" height="537" alt="browse tomcat" src="http://www.techjug.com/wp-content/uploads/2009/12/browsetomcat_thumb.jpg" width="442" border="0" /></a> </strong></p>
</p>
<p>&#160;</p>
<p>15- Now its time to run the project. Right click the <strong>project &gt; Run As &gt; Run on Server</strong>. Press <strong>Finish</strong> if any other options appear.</p>
<p>&#160;</p>
<p><strong></strong></p>
<p><a href="http://www.techjug.com/wp-content/uploads/2009/12/runas.jpg"><img title="run as" style="border-top-width: 0px; display: block; border-left-width: 0px; float: none; border-bottom-width: 0px; margin-left: auto; margin-right: auto; border-right-width: 0px" height="489" alt="run as" src="http://www.techjug.com/wp-content/uploads/2009/12/runas_thumb.jpg" width="465" border="0" /></a> </p>
<p>&#160;</p>
<p>16- Fire up your browser and provide the following URL <a title="http://localhost:8080/Helloworld/" href="http://localhost:8080/Helloworld/">http://localhost:8080/Helloworld/</a> and you will see something similar to the following output.</p>
<p>&#160;</p>
<p><a href="http://www.techjug.com/wp-content/uploads/2009/12/ouput.jpg"><img title="ouput" style="border-top-width: 0px; display: block; border-left-width: 0px; float: none; border-bottom-width: 0px; margin-left: auto; margin-right: auto; border-right-width: 0px" height="216" alt="ouput" src="http://www.techjug.com/wp-content/uploads/2009/12/ouput_thumb.jpg" width="461" border="0" /></a> </p>
<p>&#160;</p>
<p>That’s it, we are done with our first JSP web application. </p>
<p><strong>Downloads</strong></p>
<p>Download the full project from <a href="http://www.box.net/shared/34h6rynhm8">here</a></p>
<p><strong>Enjoy!</strong></p>
<p><br/><br />
<strong>Related Links</strong></p>
<p><a href="http://www.techjug.com/index.php/2009/12/java-hello-world-application-with-myeclipse/#more-62">Java Hello World Application With MyEclipse</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.techjug.com/index.php/2009/12/javajsp-hello-world-web-application-in-eclipse/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Tutorial: Java Hello World Application With MyEclipse</title>
		<link>http://www.techjug.com/index.php/2009/12/java-hello-world-application-with-myeclipse/</link>
		<comments>http://www.techjug.com/index.php/2009/12/java-hello-world-application-with-myeclipse/#comments</comments>
		<pubDate>Thu, 17 Dec 2009 16:47:00 +0000</pubDate>
		<dc:creator>ali</dc:creator>
				<category><![CDATA[J2EE]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[eclipse]]></category>
		<category><![CDATA[hello world]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[myeclipse]]></category>
		<category><![CDATA[tomcat]]></category>

		<guid isPermaLink="false">http://www.techjug.com/index.php/2009/12/java-hello-world-application-with-myeclipse/</guid>
		<description><![CDATA[Java Hello World Web Application in MyEclipse
 
 
 
 
1- Open MyEclipse
2- Click on menu File &#62; New &#62; Web Project


 


3- Give a name to the project. Here I use “Helloworld”

4- Click on Finish
5- MyEclipse will automatically create some files. Project hierarchy is show here

6- Open index.jsp. It contains the following code or [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Java Hello World Web Application in MyEclipse</strong></p>
<p><strong> </strong></p>
<p><strong> </strong></p>
<p><strong> </strong></p>
<p><strong> </strong></p>
<p>1- Open MyEclipse</p>
<p>2- Click on menu <strong>File &gt; New &gt; Web Project</strong></p>
<p><strong><br />
</strong></p>
<p><strong> </strong></p>
<p><a href="http://www.techjug.com/wp-content/uploads/2009/12/clip_image001.jpg"><img style="border-top-width: 0px; display: block; border-left-width: 0px; float: none; border-bottom-width: 0px; margin-left: auto; margin-right: auto; border-right-width: 0px" title="clip_image001" src="http://www.techjug.com/wp-content/uploads/2009/12/clip_image001_thumb.jpg" border="0" alt="clip_image001" width="244" height="207" /></a></p>
<p><span id="more-62"></span></p>
<p>3- Give a name to the project. Here I use “<strong>Helloworld</strong>”</p>
<p><a href="http://www.techjug.com/wp-content/uploads/2009/12/clip_image002.jpg"><img style="border-top-width: 0px; display: block; border-left-width: 0px; float: none; border-bottom-width: 0px; margin-left: auto; margin-right: auto; border-right-width: 0px" title="clip_image002" src="http://www.techjug.com/wp-content/uploads/2009/12/clip_image002_thumb.jpg" border="0" alt="clip_image002" width="228" height="244" /></a></p>
<p>4- Click on <strong>Finish</strong></p>
<p>5- MyEclipse will automatically create some files. Project hierarchy is show here</p>
<p><a href="http://www.techjug.com/wp-content/uploads/2009/12/clip_image003.jpg"><img style="border-top-width: 0px; display: block; border-left-width: 0px; float: none; border-bottom-width: 0px; margin-left: auto; margin-right: auto; border-right-width: 0px" title="clip_image003" src="http://www.techjug.com/wp-content/uploads/2009/12/clip_image003_thumb.jpg" border="0" alt="clip_image003" width="122" height="244" /></a></p>
<p>6- Open index.jsp. It contains the following code or put the following code in <strong>index.jsp </strong></p>
<p><br/></p>
<pre class="java">&nbsp;
&nbsp;
&lt;%@ page language=<span style="color: #ff0000;">&quot;java&quot;</span> <span style="color: #a1a100;">import=&quot;java.util.*&quot; pageEncoding=&quot;ISO-8859-1&quot;%&gt;</span>
&lt;%
<a href="http://www.google.com/search?hl=en&amp;q=allinurl%3AString+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #aaaadd; font-weight: bold;">String</span></a> path = request.<span style="color: #006600;">getContextPath</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
<a href="http://www.google.com/search?hl=en&amp;q=allinurl%3AString+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #aaaadd; font-weight: bold;">String</span></a> basePath = request.<span style="color: #006600;">getScheme</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>+<span style="color: #ff0000;">&quot;://&quot;</span>+request.<span style="color: #006600;">getServerName</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>+<span style="color: #ff0000;">&quot;:&quot;</span>+
request.<span style="color: #006600;">getServerPort</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>+path+<span style="color: #ff0000;">&quot;/&quot;</span>;
%&gt;
&nbsp;
&lt;!DOCTYPE <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3AHTML+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #aaaadd; font-weight: bold;">HTML</span></a> <span style="color: #000000; font-weight: bold;">PUBLIC</span> <span style="color: #ff0000;">&quot;-//W3C//DTD HTML 4.01 Transitional//EN&quot;</span>&gt;
&lt;html&gt;
  &lt;head&gt;
    &lt;base href=<span style="color: #ff0000;">&quot;&lt;%=basePath%&gt;&quot;</span>&gt;
&nbsp;
    &lt;title&gt;My JSP <span style="color: #ff0000;">'index.jsp'</span> starting page&lt;/title&gt;
	&lt;meta http-equiv=<span style="color: #ff0000;">&quot;pragma&quot;</span> content=<span style="color: #ff0000;">&quot;no-cache&quot;</span>&gt;
	&lt;meta http-equiv=<span style="color: #ff0000;">&quot;cache-control&quot;</span> content=<span style="color: #ff0000;">&quot;no-cache&quot;</span>&gt;
	&lt;meta http-equiv=<span style="color: #ff0000;">&quot;expires&quot;</span> content=<span style="color: #ff0000;">&quot;0&quot;</span>&gt;
	&lt;meta http-equiv=<span style="color: #ff0000;">&quot;keywords&quot;</span> content=<span style="color: #ff0000;">&quot;keyword1,keyword2,
         keyword3&quot;</span>&gt;
	&lt;meta http-equiv=<span style="color: #ff0000;">&quot;description&quot;</span> content=<span style="color: #ff0000;">&quot;This is my page&quot;</span>&gt;
	&lt;!--
&lt;link rel=<span style="color: #ff0000;">&quot;stylesheet&quot;</span> type=<span style="color: #ff0000;">&quot;text/css&quot;</span> href=<span style="color: #ff0000;">&quot;styles.css&quot;</span>&gt;
	--&gt;
  &lt;/head&gt;
&nbsp;
  &lt;body&gt;
    <span style="color: #000000; font-weight: bold;">This</span> is my JSP page. &lt;br&gt;
  &lt;/body&gt;
&lt;/html&gt;
&nbsp;</pre>
<p><br/></p>
<p>7- The only line of code for our interest is following</p>
<p><br/></p>
<pre class="html4strict">&nbsp;
&nbsp;
  <span style="color: #009900;"><a href="http://december.com/html/4/element/body.html"><span style="color: #000000; font-weight: bold;">&lt;body&gt;</span></a></span>
    This is my JSP page.
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/body&gt;</span></span>
&nbsp;</pre>
<p><br/></p>
<p>8- The other file of your interest is web.xml. Open the file and &lt;welcome-file&gt; tag should point to index.jsp<br />
<br/></p>
<pre class="xml">&nbsp;
&nbsp;
  <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;welcome-file-list<span style="font-weight: bold; color: black;">&gt;</span></span></span>
    <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;welcome-file<span style="font-weight: bold; color: black;">&gt;</span></span></span>index.jsp<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/welcome-file<span style="font-weight: bold; color: black;">&gt;</span></span></span>
  <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/welcome-file-list<span style="font-weight: bold; color: black;">&gt;</span></span></span>
&nbsp;</pre>
<p><br/></p>
<p>9- That’s it, no more coding and now we will deploy the web application on tomcat web server.</p>
<p>10- I am using MyEclipse 7.5, Tomcat is already configured with the IDE and you just need to run the server and your application is ready.</span></p>
<p><a href="http://www.techjug.com/wp-content/uploads/2009/12/clip_image004.jpg"><img style="border-top-width: 0px; display: block; border-left-width: 0px; float: none; border-bottom-width: 0px; margin-left: auto; margin-right: auto; border-right-width: 0px" title="clip_image004" src="http://www.techjug.com/wp-content/uploads/2009/12/clip_image004_thumb.jpg" border="0" alt="clip_image004" width="244" height="228" /></a></p>
<p><span style="font-weight: normal;">11- Tomcat is running now</span></p>
<p><span style="font-weight: normal;">12- Open browser and navigate to following URL </span><a href="http://localhost:8080/Helloworld/"><span style="font-weight: normal;">http://localhost:8080/Helloworld/</span></a></p>
<p><a href="http://www.techjug.com/wp-content/uploads/2009/12/clip_image005.jpg"><img style="border-top-width: 0px; display: block; border-left-width: 0px; float: none; border-bottom-width: 0px; margin-left: auto; margin-right: auto; border-right-width: 0px" title="clip_image005" src="http://www.techjug.com/wp-content/uploads/2009/12/clip_image005_thumb.jpg" border="0" alt="clip_image005" width="244" height="89" /></a></p>
<p><span style="font-weight: normal;">13- That’s it, your first java web application is up and running.</span></p>
<p><strong>Downloads</strong></p>
<p>Download the full project from <a href="http://www.box.net/shared/jfpk3lzrzo">here</a></p>
<p><span style="font-weight: normal;">Enjoy!</span></p>
<p></strong><br />
<br/><br/><br />
<strong>Related Links</strong></p>
<p><a href="http://www.techjug.com/index.php/2009/12/javajsp-hello-world-web-application-in-eclipse/#more-131">Java/JSP Hello World Web Application in Eclipse</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.techjug.com/index.php/2009/12/java-hello-world-application-with-myeclipse/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
