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 pdf name 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 "pdf name" Watch "pdf name" New topic

pdf name

sreejith panampilly
Ranch Hand

Joined: Jun 15, 2006
Posts: 49
i am creating a pdf through, when open it and save then the default pdf name is the servlet name i am using acrobat readed 7.
when using the arobat reader 5 pdf name is correct.
how can i crrect this
Ben Souther

Joined: Dec 11, 2004
Posts: 13410

Search this and the JSP forum for "Content-Disposition".
The entry in the JSP Faq, under JspAndExcel has some example code that uses this header.

Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Don't get me started about those stupid light bulbs.
subject: pdf name
Similar Threads
How to set browser title using HTTP Header from a Servlet?
Need help with replacing a String in PDF using PDFBox
response.setHeader("Content-Disposition") not working in IE alone
load PDF file from website
Including fonts in PDFs using iText