This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes Tomcat and the fly likes Basic authentication & showing EXCEL Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Products » Tomcat
Bookmark "Basic authentication & showing EXCEL" Watch "Basic authentication & showing EXCEL" New topic
Author

Basic authentication & showing EXCEL

Gert Van der Voorde
Greenhorn

Joined: Mar 17, 2004
Posts: 1
Hello,
I am writing a web application that generates an excel document from a db-query in tomcat.
The way i am generating this is, to use a servlet and set the contentType to excel. Everything works fine without authentication.
When I add authentication to my webapplication, i cannot open the excel - file. Excel gives the following error : "Microsoft excel cannot access the file "filename" .The file name or path does not exits. "
The same error occurs when you put an EXCEL document in a public directory and basic authentication is required for the webapp... When you try to access this file through the browser "http://yourserver/webapp/test.xls", the same error occurs.
I am using Tomcat 4.1.29, Excel 97. I also tested with Office XP(same problem).
The java version I am using is 1.3.1
Does anyone has an idea how to solve this?
 
GeeCON Prague 2014
 
subject: Basic authentication & showing EXCEL