You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Panna Bodupali <pa...@bsil.com> on 2003/05/16 14:30:26 UTC
Problem downloading CSV File in I.E 6.0
Hi All,
I am trying to download a csv from my webapp using security set in web.xml.
In my web.xml, for security I have mentioned the following.
<security-constraint>
<web-resource-collection>
<web-resource-name>Protected Area</web-resource-name>
<url-pattern>/*</url-pattern>
</web-resource-collection>
<auth-constraint>
<role-name>tomcat</role-name>
</auth-constraint>
</security-constraint>
<login-config>
<auth-method>BASIC</auth-method>
<realm-name>PEMS Restricted Area</realm-name>
</login-config>
Now, in the servlet, I am calling the CSV as
response.setContentType("text/csv");
using XALAN I am transforming my XML data using XSL. Sending this transformed data to the response stream.
When I try to view the webapp, it gives me the pop-up of login. I am able to login sucesfully. From the URL when I try to download the csv file using the following url http://localhost:8080/report/reportGenerator?startDate=1-11-2003&endDate=1-11-2003&rootDir=/aol&reportType=3&format=csv, it gives me following error.
However, if I comment the security part from my web.xml and try to view the CVS output, it allows me to download the CSV file successfully.
I think what's going on is that during the creation of CSV, it is requesting for username/password (only for IE). It's probably that IE trying to have more security when passing username/password.
Is this a known problem in IE 6.0. I am not facing any problem in other browser with/without security.
Thanks in advance.
Regards,
Panna
RE: Problem downloading CSV File in I.E 6.0
Posted by Panna Bodupali <pa...@bsil.com>.
Please find the error which it gives.
-----------------------------------------------------------
Internet Explorer cannot download from localhost.
Internet Explorer was not able to open to this Internet Site. The requeted site is either unavailable or cannot be found. Please try again.
-----------------------------------------------------------
Thanks,
Regards,
Panna
-----Original Message-----
From: Panna Bodupali [mailto:pannab@bsil.com]
Sent: Friday, May 16, 2003 6:00 PM
To: tomcat-user@jakarta.apache.org
Subject: Problem downloading CSV File in I.E 6.0
Hi All,
I am trying to download a csv from my webapp using security set in web.xml.
In my web.xml, for security I have mentioned the following.
<security-constraint>
<web-resource-collection>
<web-resource-name>Protected Area</web-resource-name>
<url-pattern>/*</url-pattern>
</web-resource-collection>
<auth-constraint>
<role-name>tomcat</role-name>
</auth-constraint>
</security-constraint>
<login-config>
<auth-method>BASIC</auth-method>
<realm-name>PEMS Restricted Area</realm-name>
</login-config>
Now, in the servlet, I am calling the CSV as
response.setContentType("text/csv");
using XALAN I am transforming my XML data using XSL. Sending this transformed data to the response stream.
When I try to view the webapp, it gives me the pop-up of login. I am able to login sucesfully. From the URL when I try to download the csv file using the following url http://localhost:8080/report/reportGenerator?startDate=1-11-2003&endDate=1-11-2003&rootDir=/aol&reportType=3&format=csv, it gives me following error.
However, if I comment the security part from my web.xml and try to view the CVS output, it allows me to download the CSV file successfully.
I think what's going on is that during the creation of CSV, it is requesting for username/password (only for IE). It's probably that IE trying to have more security when passing username/password.
Is this a known problem in IE 6.0. I am not facing any problem in other browser with/without security.
Thanks in advance.
Regards,
Panna