1 Feb 2007 04:01
Virtual Directory
Alexandre Jacques <dev.lists <at> gmail.com>
2007-02-01 03:01:29 GMT
2007-02-01 03:01:29 GMT
Hi,
I am new to Jetty 6, migrating an application from Tomcat.
I now find myself trying to find a way to map an external directory to
serve static content from a Java WebApp. Something that sounds like a
"virtual directory".
Is there any way to do that?
My configuration looks like:
<Item>
<New id="voffice" class="org.mortbay.jetty.webapp.WebAppContext">
<Set name="contextPath">/</Set>
<Set name="war">./webapps/voffice.war</Set>
<Set name="VirtualHosts">
<Array type="java.lang.String">
<Item>(...).com</Item>
</Array>
</Set>
</New>
</Item>
What I need is, when somebody access something like /voffice/images/*,
that Jetty should grab the images from a static location (in my FS)
like /usr/local/apps/voffice/images/*.
Is it possible?
(Continue reading)
RSS Feed