tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "cga" <...@ciudad.com.ar>
Subject default file name in download
Date Thu, 18 Jan 2001 04:43:50 GMT
Hi there,

    I am doing a servlet that presents the output in two flawors. The first
one is a html page, I use a jsp.
    The second one is a downloable file which I generate throught a jsp.
Changing the content-type is easy. But I would like to give the file a
download name. I mean, when the user clicks on the save button he would have
a default name that I will give. I mean, something like 'usefuldata.dat'
instead of 'MyServlet'.
    Does anybody knows how to do it?

Thanks in advance,

Carlos Gaston Alvarez



Mime
View raw message