I had a similar issue, where I wanted to expose a bunch of jpeg files (use thumbails in the normal jsp pages, but hyperlink'd to the full size image - which I did not want to put into the war file)

I basically created another web app

I created the file
.../tomcat/conf/Catalina/localhost/imageData.xml

it contains

<?xml version='1.0' encoding='utf-8'?>
<Context path = "/imageData" docBase="/data/webImages">
</Context>

Now in /data/webImages I create the directory WEB-INF and the file
/data/webImages/WEB-INF.web.xml

it is just the standard web.xml

Now I can access http://myServer/imageData/
If you want to stop people looking at the file listings, put an file index.html in the /data/webImages directory, with

<br>
This is not a valid url


Hope this helps,
John



At 03:25 PM 10/26/2005 -0500, Raviteja Veerla wrote:
Hi,
I know that to create the root of a web application, we just have to make a
directory in the webapps folder of tomcat and then copy the files in to that
directory. but my situation is different, i have these folders which are to
be exposed as web applications else where and i need to somehow point to
these directories. is there anyway we can do that. may be its simple but im
struggling abit to get this straigtened out.
 thanks in advance
Ravi

**********************************************************************
  John Laughton, Cisco Systems            ([EMAIL PROTECTED])
  408.902.3592 (voicemail and fax)       page - 1 800 365 4578
**********************************************************************

Reply via email to