You'll need to have JDK 1.6 (or simply 'JDK 6', as it is called on Sun's download page) installed on your system in order for Tomcat 6.0 to work properly. If you don't already have it, you can get it from java.sun.com.
Obtaining Tomcat 6.0
Tomcat 6.0 is an open source and free Servlet Container and JSP Engine. It is developed by Apache Software Foundation and is available for download at http://tomcat.apache.org, or more specifically at http://tomcat.apache.org/download-60.cgi. Choose the latest Tomcat 6.0 version. Once you have downloaded Tomcat 6.0, proceed to the next step.
Installing Tomcat 6.0
Unzip the file to a suitable folder. In Windows, you can unzip it to
C:\ which will create a directory like C:\apache-tomcat-6.0.14 containing Tomcat files. Now you'll have to create two environment variables, CATALINA_HOME and JAVA_HOME. Most probably you'll have JAVA_HOME already created if you have installed Java Development Kit on your system. If not then you should create it. The values of these variables will be something like :
CATALINA_HOME:C:\apache-tomcat-6.0.14JAVA_HOME:C:\Program Files\Java\jdk1.6.0_03
To create these environment variables in Windows 2000 or Windows XP, go to Start -> Settings -> Control Panel -> System -> Advanced -> Environment Variables -> System variables -> New. Enter the name and value for CATALINA_HOME and also for JAVA_HOME if not already there.
Under Windows 95/98, you can set these variables by editing C:\autoexec.bat file. Just add the following lines and reboot your system :
SET CATALINA_HOME=C:\apache-tomcat-6.0.14Running Tomcat 6.0
SET JAVA_HOME=C:\Program Files\Java\jdk1.6.0_03
Ok now, lets start Tomcat by running the C:\apache-tomcat-6.0.14\bin\startup.bat batch file.
Tomcat server will start and print some status messasge. Now point your browser to http://localhost:8080 and you should see the default Tomcat home page.

To shutdown the server run C:\apache-tomcat-6.0.14\bin\shutdown.bat batch file.
Creating & Deploying your First Sample Application in Tomcat
First create a directory 'sample' in 'C:\apache-tomcat-6.0.14\webapps\'.
Create a new file called 'index.jsp' in 'sample' directory and copy the below code in it.
<html>
<head>
<title>First Sample Application</title>
</head>
<body>
<%
String name = "Deepak Sharma";
%>
<p>Welcome <%= name %>!</p>
</body>
</html>
Restart your tomcat server by 'stopping' and 'starting' again, to deploy the sample application.
Then browse the following url "http://localhost:8080/sample"
