Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

OutputStream and HTML Title

 
Manikandan Jayaraman
Ranch Hand
Posts: 230
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I use an output stream in my servlet and write a PDF document. The PDF is given a link in the jsp page. When the link is clicked the PDF gets opened. It opens as an "inline" and not an attachment, as expected. The "title" of the html page shows the whole url like "http://localhost:8080/myapp/test.jsp".

How can I change this title when I use output stream. If I use a println in my servlet, the generated PDF gets corrupted.

Please Help.
_Mani
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic