2 Replies Latest reply on Feb 28, 2007 5:48 PM by jacklty

    Using static resources outside the context root

    jacklty

      Is there an easy way to configure JBoss to read static resources (images, pdf, etc) from a specific location without using servlet to handle the request.

      For example, I have all those files saved in C:\archive\ and if user sends in a request - http://www.abc.com/webapp/report.pdf, it will go to the specific location to read that file instead of the context root of the webapp.

      In web.xml, we have something called <servlet-mapping? which can tell jboss to parse the url pattern and decide which servlet should handle the request. Does JBoss have something similar for static resources?

      Thanks