Win a copy of Java Concurrency Live Lessons this week in the Threads forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Opening new link in new window in PDF  RSS feed

 
sara ali
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

i require an URGENT help...please if anybody tell me that how can i open link in new window in PDF format..i mv new programmer of java....code should b in jsp or html...

Advance thx.......
 
Tom George
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can open a new window using javascript's window.open function.
This would open a jsp, in which the mime type has been set to text/pdf

simple !
 
Tom George
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
On afterthought, its not as simple when displaying pdf..Seems you have to write a servlet for this.

Hope this link is useful.

http://www.jguru.com/faq/view.jsp?EID=1057311
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!