# tomcat-users mailing list archives

##### Site index · List index
Message view
Top
From Benoît Jacquemont <benoit.jacquem...@smile.fr>
Subject RE: How to use a directory outside the context
Date Tue, 03 Apr 2001 11:21:04 GMT
```Hi Stéphane,

Yes, it is possible, you just have to use an absolute path instead of a
relative path. Indeed, any relative path use TOMCAT_HOME as root path.

For example, you can set your docBase to "d:\projets\mon_appli\war". I'm
using this kind of path for development on my Windows box.

Benoît

>
> Hello,
>
> I wonder how it is possible to configure Tomcat so I can define a
> context where I defined a docbase and use directories which are not
> sub-tree of the docbase.
>
> For example, let's assume I've install tomcat on c: and that I use the
> context:
>
>                  crossContext="true"
>                  debug="0"
>                  trusted="true" >
>         </Context>
>
> I want to use in my JSP or servlets a directory which is on the drive
> d:, or not under \$TOMCAT_HOME/webapps
>
> Is it possible ?
> If so how ?
>
>