tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tia Haenni" <>
Subject RE: Started Tomcat, why don't JSPs run...
Date Fri, 21 Sep 2001 12:49:37 GMT
Taken from the app developer's guide docs for Tomcat 4.0:

A web application is defined as a hierarchy of directories and files in a
standard layout. Such a hierarchy can be accessed in its "unpacked" form,
where each directory and file exists in the file system separately, or in a
"packed" form known as a Web ARchive, or WAR file. The former format is more
useful during development, while the latter is used when you distribute your
application to be installed.

The top-level directory of your web application hierarchy is also the
document root of your application. Here, you will place the HTML files and
JSP pages that comprise your application's user interface. When the system
administrator deploys your application into a particular server, he or she
assigns a context path to your application (a later section of this manual
describes deployment on Tomcat). Thus, if the system administrator assigns
your application to the context path /catalog, then a request URI referring
to /catalog/index.html will retrieve the index.html file from your document

Follow this link for more info:

-----Original Message-----
From: Jeff Turner []
Sent: Friday, September 21, 2001 12:40 AM
Subject: Re: Started Tomcat, why don't JSPs run...

On Thu, Sep 20, 2001 at 10:32:00PM -0400, teddiebear johnson wrote:
> I loaded tomcat successfully, but when i put a JSP file in the webapps
> directory, I come up with this error

Well it's called "webapps" because it's where you put webapps, not JSPs :)

To get started, put your JSP in webapps/ROOT. Eg webapps/ROOT/foo.jsp
will be accessible at http://localhost:8080/foo.jsp.

Have a read of the "App Developers Guide", linked to from the main


View raw message