Java Mailing List Archive

http://www.gg3721.com/

Home » Struts Users Mailing List »

struts & PDF

fea jabi

2010-04-13

Replies: Find Java Web Hosting

Author LoginPost Reply

On click of a button I open a window and generating PDF in it as "inline" within that browser window. It works fine.



I did set the http response header for the response with the file name. So, I am seeing the right PDF name in the open/save dialog of PDF.



But when I click on the save button in PDF within the browser or File|Save of the browser the file name in the save dialog is the "struts action name.pdf" instead of the http response header file name that I set.



How to get the file name set to the header of http response in the save dialog instead of the struts action name.pdf?





Thanks.


           
_________________________________________________________________
The New Busy is not the old busy. Search, chat and e-mail from your inbox.
http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_3
©2008 gg3721.com - Jax Systems, LLC, U.S.A.