hi all,
i have a problem when i click the link in jsp page. whenever i am clicking the jsp page link it wants to open a pdf file, the pdf file is located in remote system. its working properly in Internet Explorer. but i am opning this in FireFox means its not opening. In firefox url that is not showing the exact path. optionally its showing like that:

http://172.16.2.21:9090/FMS/source/
journal/%5C%5C172.16.2.1%5C
copyediting%5CELS%5C
Manuscript_Screening%5CMS%5C
RDTEST%5C02-Process%5C
RDTEST-D-08-02051.fdf

and my jsp code whichever working fine in Internet Explorer is :

<%

String newpath="\\\\172.16.2.1\\copyediting
\\ELS
\\Manuscript_Screening\\MS\\RDTEST\\
02-Process\\RDTEST-D-08-02051.fdf";

%>

<a href="<%=newpath%>" target="dynamic"></a>

can any one solve my problem. as soon as possible. thanks in advance.

Recommended Answers

All 6 Replies

Set the Content-type and content-disposition headers and send the bytes through exactly as you read them.

Edit: nevermind that. Set your file/program associations in FireFox.

hi all,

i got the solution for this question. thanks for ur replies.

Would be nice if you can post your solution as it may help somebody in the future.
Also please mark this post as solved.

how to open pdf files in jsp page?

how to link pdf file with a picture?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.