> I'm trying to map .XLS extension to CF in IIS6. I'm setting 
> this mapping in the properties for one of the Web sites on 
> the server only.
> 
> When I run the application (which writes some query results 
> to an ..XLS file), I get an error stating that "Either the 
> MAcromedia application server is unreachable or it does not 
> have a mapping to process the request".  I've stopped/started 
> CFusion server in the Jrun admin after settting the mapping in IIS.
> 
> The server is Win2003, IIS6, and runs CF6.1 enterprise on Jrun.
> 
> What am I missing here??  This looks like it should be pretty 
> simple...

In addition to configuring your web server, you also have to configure CF by
editing web.xml, which is typically located in \cfusionmx\wwwroot\WEB-INF or
\jrun4\servers\cfusion\cfusion-ear\cfusion-war\WEB-INF depending on whether
you installed CFMX with the default server configuration or multiserver
configuration.

<servlet-mapping>
        <servlet-name>CfmServlet</servlet-name>
      <url-pattern>*.xls</url-pattern>
</servlet-mapping>
   
<servlet-mapping>
      <servlet-name>CfmServlet</servlet-name>
      <url-pattern>*.xls/*</url-pattern>
</servlet-mapping>

However, I'd recommend that you not do this. Instead, just use .cfm files
and specify the appropriate HTTP response headers to prompt the client to
download the files with the extension you want:

http://www.figleaf.com/demo/mimetest/

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/

Fig Leaf Software provides the highest caliber vendor-authorized 
instruction at our training centers in Washington DC, Atlanta, 
Chicago, Baltimore, Northern Virginia, or on-site at your location. 
Visit http://training.figleaf.com/ for more information!


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:10:5340
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/10
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:10
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.10
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to