This week's book giveaway is in the NodeJS forum.
We're giving away four copies of Serverless Applications with Node.js and have Slobodan Stojanovic & Aleksandar Simovic on-line!
See this thread for details.
Win a copy of Serverless Applications with Node.js this week in the NodeJS forum!
  • 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
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Junilu Lacar
  • Paul Clapham
  • Knute Snortum
Saloon Keepers:
  • Stephan van Hulst
  • Ron McLeod
  • Tim Moores
  • salvin francis
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Vijitha Kumara

How to show PDF file in href tag  RSS feed

 
Ranch Hand
Posts: 102
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: 24291
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: 102
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: 102
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: 102
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.
 
I yam what I yam and that's all that I yam - the great philosopher Popeye. Tiny ad:
global solutions you can do in your home or backyard
https://coderanch.com/t/708587/global-solutions-home-backyard
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!