You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Roland Berger <be...@bluewin.ch> on 2003/03/10 18:40:26 UTC

OT Filename using file download within an action

Hi all

Craig has described in the thread "File upload/download design question" how
to download a file from within an action. Others have described how to set
the Header so that the browser is promting for the right filename:

response.setHeader("Content-Disposition","attachment; filename=\"" +
myFileName+ "\";");

The later does not work with netscape version 7 ( it does work with IE 6 ).
In the popup, the browser suggests  the filename like this: <myFileName>.do
. One year has passed by since and world has become more clever (sometimes I
think the opposite). Is there a more definitv guide to suggest the filename
of the download?

Thank's
Roland


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org