Hello!
My name is Greg Beckwith. I am in the process teaching myself how to develop Java Server Pages. I have downloaded the binary version of Tomcat and followed the installation instructions (from the "doc" directory) listed below:
_____________________________________________________________________________________________________________________
How Do I Install the Binary Version of Tomcat?
Very simple. You should:
- Download the zip/tar.gz/whatever file from http://jakarta.apache.org/downloads/binindex.html.
- Unzip the file into some directory (say foo). This should create a new subdirectory named "tomcat".
- Change directory to "tomcat" and set a new environment variable (TOMCAT_HOME) to point to the root directory of your Tomcat hierarchy.
1. On Win32 you should type:
"set TOMCAT_HOME=foo\tomcat"
2. On UNIX you should type:
for bash/sh "TOMCAT_HOME=foo/tomcat ; export TOMCAT_HOME"
for tcsh "setenv TOMCAT_HOME foo/tomcat" - Set the environment variable JAVA_HOME to point to the root directory of your JDK hierarchy, then add the Java interpreter to your PATH environment variable.
That's it! You can now execute Tomcat and it will run as a stand-alone (type 1) servlet container.______________________________________________________________________________________________________________________
I have tried to run the following code:
<HTML>
<HEAD>
<TITLE>Simple JSP Example</TITLE>
</HEAD>
<BODY>
<P>How many times?</P>
<FORM METHOD ="GET" ACTION="SimpleJSP.jsp">
<INPUT TYPE="TEXT" SIZE="2" NAME="numtimes">
<INPUT TYPE="SUBMIT">
</FORM>
</BODY>
</HTML>
I get an IE5 error message stating "The page cannot be displayed."
- Perhaps I installed Tomcat incorrectly.
- Maybe I did not start Tomcat properly.
Observation
Please forgive me for the following observation (I am just a beginner)
- The "BINARY" file I downloaded (http://jakarta.apache.org/downloads/binindex.html.) does not have any ".class" files. Shouldn't a compiled binary file contain these ?
Other:
- I am using a Windows NT (4.0) box.
- jdk1.2.1 is installed and working.
May I ask you for a "more" detailed, step by step set of instructions on the installation process. Also, may I have detailed step by step instruction on starting Tomcat and running code.
I look forward to hearing from you!Thank - you
Greg Beckwith
- The "BINARY" file I downloaded (http://jakarta.apache.org/downloads/binindex.html.) does not have any ".class" files. Shouldn't a compiled binary file contain these ?
