tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Julio Serje (" <>
Subject Re: JSPs anywhere
Date Wed, 01 Nov 2000 01:42:08 GMT
Hi, Joe,

You may have any directory structure for your HTML pages as long as you
comply with a minimum set of requirements:

- each application should be declared (as a "context") in the server.xml
file of Tomcat. The organization of that diectory is up to you, with the
exception of the directory WEB-INF, where you must locate the classes and/or
jar files that you want to have in the "private" classpath of your

- You can define your root application using something like this in your
server.xml file:

<!-- your  Environment -->
<Context path="" docBase="/apache/root/directory" debug="0"
reloadable="true" >

That should allow you to run JSP "anywhere" in your previous apache
directory structure. I would suggest, anyway, you consider the logical
organization suggested in the documentation.

Hope it helps,

Julio Serje
Calian Tech.

----- Original Message -----
From: Joe Laffey <>
To: <>
Sent: Tuesday, October 31, 2000 5:04 PM
Subject: JSPs anywhere

> I have tried to look in the FAQ, but it seems to be down.
> Can anyone give me a quick step-by-step on how to setup Tomcat with Apache
> to allow JSP files to be executed from anywhere an HTML can be found? In
> other words, I do not want to keep my JSP files in the examples folder ;-)
> I want to put JSP files anywhere and have them run.
> Pointers to a FAQ would be helpful too.
> Thanks!
> Joe Laffey
> LAFFEY Computer Imaging
> St. Louis, MO
> -------------------------
> With no walls or fences on the Internet, who needs Windows or Gates?
> ---------------------------------------------------------------------

View raw message