Installing Tomcat on Windows
Before installing Tomcat, make sure you have a Java Runtime Environment (JRE) on your machine. A JRE can be downloaded from http://www.javasoft.com/. See the Java SE download section.
Once you have a JRE installed, you can install Tomcat. To get Tomcat, visit the following link: http://tomcat.apache.org/. Once there, click on the Tomcat 5.5 link under the Download heading. Under Core, select the Windows Service Installer.
After downloading, launch the installer. If using Windows Vista, right-click and select "Run as Administrator". The installation process is self-explanatory. After the installer finishes, Tomcat is installed and the Tomcat service is started and listening on the port you specified during the install process, the default of which is 8080.
Tomcat can be stopped and started via the control panel - administrative tools - services - Apache Tomcat service.
To test the tomcat installation, enter the following in your web browser:
http://localhost:8080/
If the apache tomcat page shows up, the installation was successful.
There is a sample web application called jsp-examples located in the
C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps
directory. This location can be used to test your own JSP pages, or you can use the files
contained in this directory
as a template for creating your own web application.
The jsp-examples can be accessed in your web browser using the following URL: http://localhost:8080/jsp-examples/