• Post Reply Bookmark Topic Watch Topic
  • New Topic

Content Type - Access Denied

 
Suresh Babu
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hai,
In my application there are 18 text files which i need to show the user in notepad. There are links for all the textfiles in my jsp.
I am setting the content type as

response.setContentType("application/octet-stream");
response.setHeader("content-disposition","attachment;filename="+"\""+fileName+"\"");
When i click the first link, it prompts me to save or open and i am able to save it. Clicking the subsequent links shows me javasript error as Access is denied.
If i remove the frames from my application, i am able to click all the links and save them.
I am finding problems only with frames. Can you let me know the reason for this and how to overcome this problem....
Thanks
Babu
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!