Re: Using DefaultServlet for directory outside of webapps

2008-04-17 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jeff, Zengfa Gao wrote: | For our application, we want to list/show a list of | gif files. Currently we are using DefaultServlet with | listings=true (web.xml). As the result, we can list | the names of the file, and open the gif file under the | our

RE: Using DefaultServlet for directory outside of webapps

2008-04-17 Thread Caldarale, Charles R
> From: Zengfa Gao [mailto:[EMAIL PROTECTED] > Subject: Using DefaultServlet for directory outside of webapps > > Is any setting for us to redirectory DefaultServlet to > look at other defined directory? For example, if we > put files under /var/opt/ourshare directory, how can > we do it? The ea

RE: Using DefaultServlet for directory outside of webapps

2008-04-17 Thread Zengfa Gao
Chuck, This a great idea. Now I am trying for find where to put ourshare.xml file. We are using Tomcat under Jboss, I didn't find conf\Catalina yet. Thanks a lot! Jeff --- "Caldarale, Charles R" <[EMAIL PROTECTED]> wrote: > > From: Zengfa Gao [mailto:[EMAIL PROTECTED] > > Subject: Using Defa

Re: Using DefaultServlet for directory outside of webapps

2008-04-21 Thread NBW
You could write a simple servlet to serve up these images from any accessible file system. The URL for it would look something like this: http://yourtomcatserver/yourwebappcontext/getImage?name=Foo.gif The the servlet would know what directory to look for images in and handle streaming them out t