• Post Reply Bookmark Topic Watch Topic
  • New Topic

Security error while loading pdf file in jsp in firefox?

 
prem kanna
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

When i type in the following link manually in firefox as " file://///172.16.2.1/copyediting/ELS/mallet.pdf", pdf file is loaded successfully in the firefox browser. PDF file is located in remote server which is referred by IP 172.16.2.1.

I've assigned the Same link in a String in jsp page and tested it through my tomcat application as

<%
String linktotest="file://///172.16.2.1/copyediting/ELS/mallet.pdf";
%>

link

when i click on the hyperlink , the pdf is not loaded in firefox and i'm getting the following error in firefox error console

Security Error: Content at http://172.16.3.222:8080/FMS/source/journal/ProductionEntry.jsp may not load or link to file://///172.16.2.1/copyediting/ELS/mallet.pdf
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 35743
412
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Randy,
What is generated by the link? If you look at the HTML source, it will show this. I suspect the link is different than what you are typing in manually.
 
prem kanna
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all,

i got the solution for this question. thanks for your replies.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!