J
Jay Graves
Hello
I am trying to return a file to the user when a certain .jsp or
servlet is requested. For example if the user requests
/webapp/start.jsp I would like to do some computations and based on
certain server setting return the user a file of similar to
user_xxx_yyy.mft (mft == My File Type).
I can get the browser to understand that the response is of a
different content type by either doing.
response.setContentType("application/x-mft");
or
response.setHeader("Content-disposition","attachment;file=test.mft");
But both of those always seem to present the user with a download
dialog with the file name set as "start.jsp". Is there any way to
return a response that sets the default file name to what I specify
(uesr_xxx_yyy.mft)?
Thanks
I am trying to return a file to the user when a certain .jsp or
servlet is requested. For example if the user requests
/webapp/start.jsp I would like to do some computations and based on
certain server setting return the user a file of similar to
user_xxx_yyy.mft (mft == My File Type).
I can get the browser to understand that the response is of a
different content type by either doing.
response.setContentType("application/x-mft");
or
response.setHeader("Content-disposition","attachment;file=test.mft");
But both of those always seem to present the user with a download
dialog with the file name set as "start.jsp". Is there any way to
return a response that sets the default file name to what I specify
(uesr_xxx_yyy.mft)?
Thanks