File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Basic authentication & showing EXCEL
 
Similar Threads
Tomcat - direct access to PDF documents
Form Login Refresh
problem on validatinfg role for security of </security-constraint>
Is it possible to deploy two wars in the same context?
Excel with JBuilder ?