aspose file tools*
The moose likes JSP and the fly likes how to link pdf files with in Jsp, to view in web browser? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "how to link pdf files with in Jsp, to view in web browser?" Watch "how to link pdf files with in Jsp, to view in web browser?" New topic
Author

how to link pdf files with in Jsp, to view in web browser?

venkat vr
Greenhorn

Joined: Jun 19, 2013
Posts: 1
Hi all,

I want to display PDF's in browser by using Jsp.

i wrote normal <a> tag, when i run that JSP, 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.
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12682
    
    5
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.

Bill

Java Resources at www.wbrogden.com
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to link pdf files with in Jsp, to view in web browser?
 
Similar Threads
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