p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


  Return to Index  

pro_java_server thread: opening a word document


Message #1 by Deepak Kapur <kapur_deepak@y...> on Mon, 2 Dec 2002 21:00:06 -0800 (PST)
 Hello,

While opening a word document through my application, I have done the following steps in the jsp.

set the content type to : response.setContentType("application/vnd.msword");

and setting the header to :  response.setHeader("Content-Disposition","inline; filename=\"myfile.doc\";");

When I run the application, I do not get the filename as I specified in the header.

This problem does not occur if I specify 'attachment' instead of the 'inline'.

Let me know if there is some special setting to be done for 'inline'.

Thanks and Regards

Deepak



---------------------------------
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now

  Return to Index