Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Internet Explorer and downloading zip files/ view XML source files.

 
Rudy Rusli
Ranch Hand
Posts: 114
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In my JSP application, I have some XML files and some ZIP files.
When I try to view the XML source files in Internet Explorer, it gives me this:
"The XML source file is unavailable for viewing"
When I try to access the zip files in Internet Explorer, it gives me this:
"Internet Explorer cannot download myZipFile.zip from myHost.
Internet Explorer was not able to open this internet site. The requested site is either unavailable or cannot be found. Please try again later."

It's okay in Mozilla. I noticed that when I remove <security-constraint> tag in my web.xml, I can access or view sources okay in Internet Explorer.
But I need the security-constraint tag.
Could somebody please advice?

Thanks in advance for all the help.
Below is the <security-constraint> tag that I put in my web.xml

--------------------------------------------------------------------------------------------------------

<security-constraint>
<web-resource-collection>
<web-resource-name>user-resource</web-resource-name>
<description>pages which require login</description>
<url-pattern>*.jsp</url-pattern>
<url-pattern>*.html</url-pattern>
<url-pattern>*.xml</url-pattern>
<url-pattern>*.zip</url-pattern>
<http-method>GET</http-method>
<http-method>POST</http-method>
</web-resource-collection>

<auth-constraint>
<description>Must authenticate before querying the system</description>
<role-name>role1</role-name>
<role-name>role2</role-name>
</auth-constraint>

<user-data-constraint>
<transport-guarantee>NONE</transport-guarantee>
</user-data-constraint>
</security-constraint>
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic