users@glassfish.java.net

Can I mapping an external directory to appear within the webapp?

From: <glassfish_at_javadesktop.org>
Date: Fri, 16 Mar 2007 14:10:14 PST

Simple example.

I have mywebapp.war.

It gets deployed to: http://host/mywebapp

Now, say I have an images directory on the file system (say /usr/local/data/images), and inside that is img.gif.

In GF1.x, can I do anything so that I can have a url like: http://host/mywebapp/images/img.gif?

Map that external directory within the URL space of my web app as if the data we actually bundled with my WAR?

Most importantly, can I then map a filter in my application to /images and have it fire before the system tries to serve up any data from this external resource?
[Message sent by forum member 'whartung' (whartung)]

http://forums.java.net/jive/thread.jspa?messageID=208519