tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Greg Trasuk" <stratus...@on.aibn.com>
Subject RE: Can't view Jsp examples
Date Tue, 21 Aug 2001 20:36:03 GMT
	When you say "I open e:\mytomcat\tomcat\webapps\examples\jsp\index.html" do
you mean you're clicking on the icon in Windows Explorer?  I tried that and
got the behavior you described.

	That's not the way to get at things with Tomcat.  What that does is asks
Internet Explorer to open it as a local file.  When you do this, IE doesn't
know what to do with .jsp files, so it simply displays them as though they
were text.  When you submit the form, it simply displays the HTML of that
page.

	Tomcat is a web server.  You need to have IE do a request on Tomcat, rather
than loading the files locally.  In Tomcat's default installation, it places
an HTTP server listening on port 8080.  HTTP is normally served through port
80; this is where your PWS is listening.  Here's what you should try:

1- Go into your Tomcat\bin directory and double-click on startup.bat.  You
should see a window open up to run Tomcat.  Leave this window open.
2- Open up IE.  Type 'http://localhost:8080' into the location bar.  You
should get the Tomcat server homepage.
3- Click on the link for either the servlet examples or JSP examples.  All
should be running as expected.
4- Before you attempt to do much development, read the Servlet and JSP specs
on Sun's website so you have a good understanding of web apps, etc.

Cheers,

Greg Trasuk, President
StratusCom Manufacturing Systems Inc. - We use information technology to
solve business problems on your plant floor.
http://stratuscom.ca

> -----Original Message-----
> From: Amanda@softv.net [mailto:Amanda@softv.net]
> Sent: Tuesday, August 21, 2001 3:58 PM
> To: tomcat-user@jakarta.apache.org
> Subject: Can't view Jsp examples
>
>
> I'm sure this question has been asked a billion times, but I'm
> desperate here. I installed Tomcat v. 3.3 on my e drive. The path is
> e:\myTomcat\tomcat. My OS is Win2K. I've got my jdk installed at
> c:\jdk1.3.1. Here are my environment variables:
> CLASSPATH:
> C:\jdk1.3.1\lib\tools.jar;.;
>
> JAVA_HOME:
> c:\jdk1.3.1
>
> TOMCAT_HOME:
> e:\mytomcat\tomcat
>
> PATH:
> C:\jdk1.3.1\bin
>
> I can start Tomcat by running the startup.bat. When I open
> e:\mytomcat\tomcat\webapps\examples\jsp\index.html and try to execute
> some of the examples, some spit out the contents of the file in text
> format without processing the code, just as you would see it if you
> opened it up in Notepad. Other examples, like errorpage, just don't do
> what they are supposed to do. For errorpage, no matter what car I
> select, it says Yes!!! Acura is my favorite car. Anybody know of
> something I could do here? Thanks in advance.
>
>
> Amanda Bennett
> Web Developer
> E-mail: amanda@sofTV.net
>


Mime
View raw message