Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Problem in opening PDF or FDF in Firefox?

843840Feb 12 2010 — edited Feb 14 2010
Hi all,

I am using tomcat 5.5. In one of jsp code, I have used a hyperlink to open a PDF or FDF file placed in server .My requirement is while clicking the hyperlink the PDF or FDF file should be opened in browser window itself. The file is located in remote server connected through LAN.

For eg :
<html>
<body>
<%
String test= "//123.45.6.78/XXXX/YYYY/RD/RDTEST-D-08-01178.fdf";
%>
<a  href="<%=test%>" target="dynamic" >test.pdf</a>
</body>
</html>
When this jsp page is opened in IE and if I click on the link, PDF or FDF files is getting opened well in browser.

While clicking the link in Firefox browser, the path set in anchor tag is changed to

http://localhost:8080/ManuscriptCheck/\\123.45.6.78\XXXX/YYYY/RD\RDTEST-D-08-01178.fdf


Where http://localhost:8080/ManuscriptCheck/ is my Web application URL.

How to overcome this issue to have the file url as such without web application url appending before it?

Can Any body guide me. Thanks in advance.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 14 2010
Added on Feb 12 2010
1 comment
191 views