http://www.jsptut.com/Getfamiliar.jsp
What I need is a “Tomcat”. Here is the versions list.
| Servlet/JSP Spec | Apache Tomcat version |
| 2.5/2.1 | 6.0.13 |
| 2.4/2.0 | 5.5.23 |
| 2.3/1.2 | 4.1.36 |
| 2.2/1.1 | 3.3.2 |
What if I use the latest version, 6.0.13?
From here: http://tomcat.apache.org/download-60.cgi#6.0.13
Then click here: Windows Service Installer
(pgp,
md5)
It’s around 5 MB of size.
The default installation path: C:\Program Files\Apache Software Foundation\Tomcat 6.0
Setting:
java path: C:\Program Files\Java\jre1.6.0_02
Now the installation is done, and ready to work.
go to: http://localhost:8080/
You’ll see sth like this:
My local folder for web pages is:
C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\ROOT
And the default page is:
C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\ROOT\index.html
Now I’ll run a sample application, from a WAR file:
I downloaded the WAR file from:
http://tomcat.apache.org/tomcat-6.0-doc/appdev/sample/sample.war
Then, put this file in:
C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps
Go to: http://localhost:8080/sample/
to run this application.
******************************************************************
Make a text file with name: zxx.jsp
content:
Hello, world zxx
Put this file in:
C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\ROOT
Go to: http://localhost:8080/zxx.jsp
You’ll see the page.
******************************************************************