I found the XML file that I was looking for.  Now, it would be nice to know
what I was really doing here.  By adding a second <virtual-mapping> to the
enclosed file, the expandpath() function is now correctly returning
"D:\inetpub\websites\bloodsource" instead of "C:\cfusionMX\".  But what is
it that I have really done?



C:\CFusionMX\wwwroot\WEB-INF\jrun-web.xml


<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE jrun-web-app PUBLIC "-//Macromedia, Inc.//DTD jrun-web 1.0//EN"
        "http://www.macromedia.com/dtd/jrun-web.dtd";>
 
<!-- ============================================================= -->
<!-- This XML file contains web application elements that are      -->
<!-- specific to the JRun Application Server                       -->
<!-- ============================================================= -->
 
 
<jrun-web-app>
 
  <!-- =========================================================== -->
  <!-- Virtual path mappings allow a resource path to be mapped    -->
  <!-- to a different physical location (i.e. not necessarily      -->
  <!-- within the web application root). A resource-path can       -->
  <!-- end with a wild card '*' indicating that all resources      -->
  <!-- paths that start with the given path will be resolved using -->
  <!-- the system path.                                            -->
  <!-- =========================================================== -->
 
  <virtual-mapping>
    <resource-path>/WEB-INF</resource-path>
    <system-path>C:/CFusionMX/wwwroot/WEB-INF</system-path>
  </virtual-mapping>

<!-- New Mapping added that resloves problems with expandpath() -->
  <virtual-mapping>
    <resource-path>/*</resource-path>
    <system-path>D:/inetpub/websites/bloodsource</system-path>
  </virtual-mapping>

</jrun-web-app>
--------------
Ian Skinner
Web Programmer
BloodSource
www.BloodSource.org
Sacramento, CA 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm?link=i:4:137602
Archives: http://www.houseoffusion.com/lists.cfm?link=t:4
Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Get the mailserver that powers this list at 
http://www.coolfusion.com

Reply via email to