|
Greg,
First off, after the installation of tomcat, are
you able to start tomcat with the startup.bat file? If so, are you able to
access tomcat's default web page by going to http://localhost:8080? Finally, are you
able to run the example jsps located at http://localhost:8080/examples/jsp/index.html?
If so, you have correctly configured tomcat as a standalone application and you
can look at the <tomcat_install_dir>/webapps/exaples/jsp files to begin
familiarizing yourself with jsps.
Leon Palermo
Zedak Corporation
Valhalla, NY
----- Original Message -----
Sent: Wednesday, October 25, 2000 7:14
AM
Subject: Installation Problem
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."
|