A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Java 8 in Action
this week in the
how to link pdf files with in Jsp, to view in web browser?
Joined: Jun 19, 2013
Jun 19, 2013 06:37:54
I want to display
's in browser by using Jsp.
i wrote normal <a> tag, when i run that
, the Anchor Text is showing with the link, but when i click that link, it is showing HTTP status -404.
Pdf's are in web-inf folder and in root directory of Project. And am giving absolute path for Anchor tag for both, but it is not showing..
I think, in pdf files, pdf name contain spaces. This space is showing on browser as %20. Because of this, it wont work.
How to remove spaces in filename, if it is so?
Please give me any idea to resolve it.
Author and all-around good cowpoke
Joined: Mar 22, 2000
Jun 19, 2013 06:45:14
404 means you are not creating the address properly. Kindly use "view source" on your browser to show an example of what your resulting link HTML looks like.
Java Resources at
I agree. Here's the link:
subject: how to link pdf files with in Jsp, to view in web browser?
Problem in opening PDF or FDF in Firefox?
setting No Cache for JSP
Can I get local drives of server
display FTP content
pdf in web browser
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014