This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Servlets and the fly likes OutputStream and HTML Title Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "OutputStream and HTML Title" Watch "OutputStream and HTML Title" New topic
Author

OutputStream and HTML Title

Manikandan Jayaraman
Ranch Hand

Joined: Sep 15, 2004
Posts: 230
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


Regards,<br />Mani<br />SCJP 1.4 (95%)<br />SCWCD 1.4 (94%)
 
 
subject: OutputStream and HTML Title
 
Similar Threads
Getting Httpservletresponse and servletoutputstream in Portlet JSF
PDF Files and web server location
applet servlet communication
Downloading PDF and re-drawing page
PDF/HTML browser problem