• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
reply
    Bookmark Topic Watch Topic
  • New Topic