• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Frits Walraven
Bartenders:
  • Carey Brown
  • salvin francis
  • Claude Moore

How to show PDF file in href tag  RSS feed

 
Ranch Hand
Posts: 103
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I'm needing to put in my jsp an option to print pdf file. I saw in internet forums the tag:

I have puting to test target="pdf-frame" or target="_blank" in my jsp, but in both case I'm receiving HTTP status 404 not found when call the page.

Thanks in advance.
 
Sheriff
Posts: 24374
55
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you're getting a 404 then your problem is with the href, not with the target.

In your case your href points to a resouce inside the WEB-INF folder. That folder is hidden from the outside world by the server so you can't use links which point into it.
 
Cezar Apulchro
Ranch Hand
Posts: 103
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, thank you by assistance.
My reference to do this is:

In my I have changed "Docs" by "WEB-INF". I can't see where are my error.
Thanks.
 
Cezar Apulchro
Ranch Hand
Posts: 103
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry,
In my case I have changed "Docs" by "WEB-INF". I can't see where are my error.
 
Cezar Apulchro
Ranch Hand
Posts: 103
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, good news, problem is solved. i have transferred my file from WEB-INF to Web Pages and changed the href to:

Thanks a lot.
 
Crusading Chameleon likes the size of this ad:
ScroogeXHTML - the small and fast RTF to HTML converter library
https://coderanch.com/t/707504/ScroogeXHTML-RTF-HTML-XHTML-converter
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!