<?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; Tutorial</title>
	<atom:link href="http://www.techjug.com/index.php/category/tutorial/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>What is an Intent?</title>
		<link>http://www.techjug.com/index.php/2009/12/what-is-an-intent/</link>
		<comments>http://www.techjug.com/index.php/2009/12/what-is-an-intent/#comments</comments>
		<pubDate>Wed, 23 Dec 2009 06:09:08 +0000</pubDate>
		<dc:creator>inam</dc:creator>
				<category><![CDATA[Andriod]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[Andriod tutorials]]></category>

		<guid isPermaLink="false">http://www.techjug.com/?p=146</guid>
		<description><![CDATA[An intent is an asynchronous message used to activate an Andriod Application Components like Activity, Service and broadcast receiver, content providers are not activated by intents but by receiving a request from ContentResolver.
To activate an Activity an intent object with information of action being requested and URI of the data to be acted upon is passed to Context.startActivity() [...]]]></description>
			<content:encoded><![CDATA[<p>An intent is an asynchronous message used to activate an Andriod Application Components like Activity, Service and broadcast receiver, content providers are not activated by intents but by receiving a request from ContentResolver.</p>
<p>To activate an Activity an intent object with information of action being requested and URI of the data to be acted upon is passed to Context.startActivity() or Activity.startActivityForResult().</p>
<p>A service can be passed by passing an intent object to Context.startService(). To establish an ongoing connection between the calling component and a target service Context.bindService() is called by passing an intent object.</p>
<p>Similarly and intent object is passed to Context.sendBroadcast(), Context.sendOrderedBroadcast(), or Context.sendStickyBroadcast() to activate a service.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.techjug.com/index.php/2009/12/what-is-an-intent/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Tutorial: Creating Java Web Application</title>
		<link>http://www.techjug.com/index.php/2009/12/tutorial-creating-java-web-application/</link>
		<comments>http://www.techjug.com/index.php/2009/12/tutorial-creating-java-web-application/#comments</comments>
		<pubDate>Mon, 21 Dec 2009 18:41:36 +0000</pubDate>
		<dc:creator>ali</dc:creator>
				<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[J2EE]]></category>
		<category><![CDATA[tomcat]]></category>

		<guid isPermaLink="false">http://www.techjug.com/index.php/2009/12/tutorial-creating-java-web-application/</guid>
		<description><![CDATA[In this tutorial you will learn how to create a simple Hello World Java web application. The application will not use any IDE and will solely depend on what JDK provides. 
So, let start with our first java hello world web application.

Pre-Requisites
1- Download JDK from here. Latest JDK version at the time of writing this [...]]]></description>
			<content:encoded><![CDATA[<p>In this tutorial you will learn how to create a simple Hello World Java web application. The application will not use any IDE and will solely depend on what JDK provides. </p>
<p>So, let start with our first java hello world web application.</p>
<p><strong></strong></p>
<p><strong>Pre-Requisites</strong></p>
<p>1- Download JDK from <a href="http://java.sun.com/javase/downloads/index.jsp"><strong>here</strong></a>. Latest JDK version at the time of writing this tutorial is 6.</p>
<p>2- Download and install/unzip Apache Tomcat web server (zip or tar for Linux or installer) from <a href="http://tomcat.apache.org/download-60.cgi"><strong>here</strong></a></p>
<p>  <span id="more-171"></span>
<p>&#160;</p>
<p><strong>Set up Java environment on your machine</strong></p>
<p>Please refer to <a href="http://www.techjug.com/index.php/2009/12/install-and-configure-jdk-in-windows/#more-157">Install And Configure JDK On Windows</a></p>
<p>&#160;</p>
<p><strong>Set up Apache Tomcat environment on your machine</strong></p>
<p>Please refer to <a href="http://www.techjug.com/index.php/2009/12/set-up-apache-tomcat-on-windows/">Set Up Apache Tomcat On Windows</a></p>
<p>&#160;</p>
<p>Now your JDK and Tomcat is setup. We will start developing our web application. This will be a very simple web application in which only one JSP will be created and it will print some text in browser.</p>
<p>Lets get started.</p>
<p>&#160;</p>
<p>1- Create a folder <strong>Helloworld</strong> anywhere on your machine</p>
<p>2- Create a JSP file <strong>helloworld.jsp</strong> under this folder.</p>
<p>3- Put the following code in helloworld.jsp</p>
<p> <br/>
<pre class="html4strict">&nbsp;
&nbsp;
<span style="color: #009900;"><a href="http://december.com/html/4/element/html.html"><span style="color: #000000; font-weight: bold;">&lt;html&gt;</span></a></span>
  <span style="color: #009900;"><a href="http://december.com/html/4/element/head.html"><span style="color: #000000; font-weight: bold;">&lt;head&gt;</span></a></span>
    <span style="color: #009900;"><a href="http://december.com/html/4/element/title.html"><span style="color: #000000; font-weight: bold;">&lt;title&gt;</span></a></span>Hello world<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/title&gt;</span></span>
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/head&gt;</span></span>
&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>
<span style="color: #009900;"><a href="http://december.com/html/4/element/h1.html"><span style="color: #000000; font-weight: bold;">&lt;h1&gt;</span></a></span>Hello World!!!<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/h1&gt;</span></span>
&nbsp;
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/body&gt;</span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/html&gt;</span></span>
&nbsp;</pre>
<p><br/></p>
<p>4- Create folder <strong>Helloworld/WEB-INF </strong></p>
<p>5- Create a file <strong>web.xml </strong>in <strong>WEB-INF </strong>and put the following code in this file</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;">version</span>=<span style="color: #ff0000;">&quot;2.5&quot;</span> <span style="color: #000066;">xsi:schemaLocation</span>=<span style="color: #ff0000;">&quot;
http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_2_5.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;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>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>6- That’s it. We are done with the coding part. Now copy the entire Helloworld folder and put it in <strong>&lt;tomcat-home&gt;/webapps</strong></p>
<p>7- Start tomcat server, &lt;tomcat-home&gt;/bin/startup.bat</p>
<p>8- Open your browser, and access the following URL <a href="http://localhost:8080/Helloworld">http://localhost:8080/Helloworld</a></p>
<p>&#160;</p>
<p>Enjoy!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.techjug.com/index.php/2009/12/tutorial-creating-java-web-application/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Set Up Apache Tomcat On Windows</title>
		<link>http://www.techjug.com/index.php/2009/12/set-up-apache-tomcat-on-windows/</link>
		<comments>http://www.techjug.com/index.php/2009/12/set-up-apache-tomcat-on-windows/#comments</comments>
		<pubDate>Sun, 20 Dec 2009 20:17:51 +0000</pubDate>
		<dc:creator>ali</dc:creator>
				<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[tomcat]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[Jdk]]></category>
		<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">http://www.techjug.com/index.php/2009/12/set-up-apache-tomcat-on-windows/</guid>
		<description><![CDATA[&#160;
1- Download latest Apache Tomcat from here. You can download a zip or a tar for Linux or an installer package.
2- Unzip/ install tomcat at a proper place; say in C:/tomcat directory
&#160;
Set up environment variables
1- To make tomcat run JAVA_HOME environment must be set. If you already have not done this then refer to other [...]]]></description>
			<content:encoded><![CDATA[<p>&#160;</p>
<p>1- Download latest Apache Tomcat from <a href="http://tomcat.apache.org/download-60.cgi">here</a>. You can download a zip or a tar for Linux or an installer package.</p>
<p>2- Unzip/ install tomcat at a proper place; say in C:/tomcat directory</p>
<p>&#160;</p>
<p><strong>Set up environment variables</strong></p>
<p>1- To make tomcat run <strong>JAVA_HOME </strong>environment must be set. If you already have not done this then refer to other tutorial <a href="http://www.techjug.com/index.php/2009/12/install-and-configure-jdk-in-windows/#more-157">Install And Configure JDK On Windows</a> and set the java variables</p>
<p><span id="more-168"></span></p>
<p>2- Right click My Computer click <strong>Properties</strong> and choose <strong>Advance</strong> tab</p>
<p>&#160;</p>
<p><a href="http://www.techjug.com/wp-content/uploads/2009/12/image3.png"><img title="image" style="border-right: 0px; border-top: 0px; display: block; float: none; margin-left: auto; border-left: 0px; margin-right: auto; border-bottom: 0px" height="490" alt="image" src="http://www.techjug.com/wp-content/uploads/2009/12/image_thumb3.png" width="423" border="0" /></a> </p>
<p>3- Press <strong>Environment Variables</strong> button</p>
<p>4- Press <strong>New</strong> under <strong>System variables </strong></p>
<p><strong></strong></p>
<p><a href="http://www.techjug.com/wp-content/uploads/2009/12/image4.png"><img title="image" style="border-right: 0px; border-top: 0px; display: block; float: none; margin-left: auto; border-left: 0px; margin-right: auto; border-bottom: 0px" height="434" alt="image" src="http://www.techjug.com/wp-content/uploads/2009/12/image_thumb4.png" width="388" border="0" /></a></p>
<p>&#160;</p>
</p>
<p>5- Press <strong>New</strong> and provide <strong>CATALINA_HOME </strong>as variable name and path to tomcat home directory as its value</p>
<p>&#160;</p>
<p><a href="http://www.techjug.com/wp-content/uploads/2009/12/image5.png"><img title="image" style="border-right: 0px; border-top: 0px; display: block; float: none; margin-left: auto; border-left: 0px; margin-right: auto; border-bottom: 0px" height="151" alt="image" src="http://www.techjug.com/wp-content/uploads/2009/12/image_thumb5.png" width="351" border="0" /></a> </p>
<p>6- Edit <strong>path</strong> variable and append path up to tomcat bin directory</p>
<p>&#160;</p>
<p><a href="http://www.techjug.com/wp-content/uploads/2009/12/image6.png"><img title="image" style="border-right: 0px; border-top: 0px; display: block; float: none; margin-left: auto; border-left: 0px; margin-right: auto; border-bottom: 0px" height="151" alt="image" src="http://www.techjug.com/wp-content/uploads/2009/12/image_thumb6.png" width="351" border="0" /></a> </p>
<p>7- Open command prompt, write <strong>startup</strong> and press enter. Tomcat will start running</p>
]]></content:encoded>
			<wfw:commentRss>http://www.techjug.com/index.php/2009/12/set-up-apache-tomcat-on-windows/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Install And Configure JDK On Windows</title>
		<link>http://www.techjug.com/index.php/2009/12/install-and-configure-jdk-in-windows/</link>
		<comments>http://www.techjug.com/index.php/2009/12/install-and-configure-jdk-in-windows/#comments</comments>
		<pubDate>Sun, 20 Dec 2009 19:48:10 +0000</pubDate>
		<dc:creator>ali</dc:creator>
				<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[Jdk]]></category>

		<guid isPermaLink="false">http://www.techjug.com/index.php/2009/12/install-and-configure-jdk-in-windows/</guid>
		<description><![CDATA[&#160;
First download JDK from here. I am using JDK 6 for this tutorial
1- Run the JDK setup and install Java on your machine
2- On windows right click My Computer and click Properties
 
3- Choose Advance tab and click on Environment Variables button
&#160;
 
&#160;
4- Under System variable press New button
&#160;
 
5- Provide JAVA_HOME variable in Variable [...]]]></description>
			<content:encoded><![CDATA[<p>&#160;</p>
<p>First download JDK from <a href="http://java.sun.com/javase/downloads/index.jsp"><strong>here</strong></a>. I am using JDK 6 for this tutorial</p>
<p>1- Run the JDK setup and install Java on your machine</p>
<p>2- On windows right click <strong>My Computer</strong> and click <strong>Properties</strong></p>
<p> <span id="more-157"></span>
<p>3- Choose <strong>Advance</strong> tab and click on <strong>Environment Variables </strong>button</p>
<p>&#160;</p>
<p><a href="http://www.techjug.com/wp-content/uploads/2009/12/image.png"><img title="image" 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="490" alt="image" src="http://www.techjug.com/wp-content/uploads/2009/12/image_thumb.png" width="423" border="0" /></a> </p>
<p>&#160;</p>
<p>4- Under <strong>System variable</strong> press <strong>New </strong>button</p>
<p>&#160;</p>
<p><a href="http://www.techjug.com/wp-content/uploads/2009/12/image1.png"><img title="image" 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="434" alt="image" src="http://www.techjug.com/wp-content/uploads/2009/12/image_thumb1.png" width="388" border="0" /></a> </p>
<p>5- Provide <strong>JAVA_HOME </strong>variable in Variable name field and your <strong>JDK Home path</strong> in Variable value</p>
<p>&#160;</p>
<p><a href="http://www.techjug.com/wp-content/uploads/2009/12/image2.png"><img title="image" 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="151" alt="image" src="http://www.techjug.com/wp-content/uploads/2009/12/image_thumb2.png" width="351" border="0" /></a> </p>
<p>&#160;</p>
<p>6- Find <strong>Path </strong>variable under System variables and press <strong>Edit</strong>&#160; button.&#160; Append path up to JDK bin directory and press OK.</p>
<p>To check whether you JDK is setup properly open command prompt and write following command on console </p>
<p>&gt; <strong>java –version</strong></p>
<p>You will get output similar to the following image.</p>
<p>&#160;</p>
<p><a href="http://www.techjug.com/wp-content/uploads/2009/12/NewPicture.png"><img title="New Picture" style="border-top-width: 0px; display: inline; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px" height="136" alt="New Picture" src="http://www.techjug.com/wp-content/uploads/2009/12/NewPicture_thumb.png" width="673" border="0" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.techjug.com/index.php/2009/12/install-and-configure-jdk-in-windows/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>
	</channel>
</rss>
