You are here: DEVPPL Forum Programming Java Forum
NOTIFICATIONS
54.091
MEMBERS
15.687
TOPICS
62.261
POSTS
  562
FLASH GAMES
7.740
TUTORIALS
 

Login

E-mail:
Password:

Security error while loading pdf file in jsp in firefox?

0

Loading

Security error while loading pdf file in jsp in firefox?

Postby Randy_ortan » Mon Feb 09, 2009 3:31 pm

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
Code: Select all
<%
String linktotest="file://///172.16.2.1/copyediting/ELS/mallet.pdf";
%>

<a href="<%=linktotest%>">link</a>

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/jou ... nEntry.jsp may not load or link to file://///172.16.2.1/copyediting/ELS/mallet.pdf

can any one please give me the solution.
Randy_ortan
 
Reputation: 0
Posts: 12
Joined: Thu Sep 11, 2008 7:34 am
Highscores: 0
Arcade winning challenges: 0

Security error while loading pdf file in jsp in firefox? - Sponsored results

Sponsored results

Login to get rid of ads

 

0

Loading

Re: Security error while loading pdf file in jsp in firefox?

Postby Stiks » Thu Feb 19, 2009 3:26 am

Well if you don't know the difference between Java and Javascript, then you probably won't be able to figure out how to fix your issue.
Stiks
 
Reputation: 0
Posts: 7
Joined: Wed Apr 18, 2007 3:25 am
Highscores: 0
Arcade winning challenges: 0
cron
^ Back to Top