Re: how can I put jsp files with html files

From: Sudsy (bitbucket44_at_hotmail.com)
Date: 02/08/04


Date: Sun, 08 Feb 2004 12:48:31 -0500

Justin Mencl wrote:
<snip>
> Is there a way to get Tomcat to server JSP pages located outside the
> webapps/ directory?

Here's an extract from my apps-localhost.xml file:

<?xml version="1.0" encoding="ISO-8859-1"?>
<Server>
     <Host name="www.bostonmanor.ca" appBase="/u/website/bostonmanor">
         <Context path="" docBase="/u/website/bostonmanor"/>
     </Host>
</Server>

The Context element is the key. Look it up in the documentation.