10 Replies Latest reply on Mar 7, 2004 8:01 PM by haodan

    virtual directories in JBoss - possible?

    ntone606

      Hi all,

      In orion it's possible to specify a virtual directory mapping, which is used to include files that don't phsyically reside below the web layer's document root. Is this possible in JBoss?

      For example i've got an /uploads directory which is created by my application (which will be created in <jboss-dist>/bin/uploads) in which image files are placed. I'd like to map this in a fashion similar to the following (exert from Orion's orion-web.xml):

      <virtual-directory virtual-path="/uploadedimages/" real-path="../../../uploads" />

      This will allow a request to http://myServer/contextPath/uploadedimages/somefile.jpg to return the file out of the uploads directory.

      Any ideas?

      Thanks in advance.