Try:
resp.setHeader("Content-disposition", "attachment; filename=foo.exe");

Altho, I am not sure if all browsers pay much attention to this...

----------
> From: kevin cheng <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: insert header on Servlet response
> Date: Saturday, July 24, 1999 8:07 AM
>
> Hi,
>
> Response class provides setContentType method for setting ContentType
> header.
> Are there any way to insert other headers(ex, Content-disposition) to
> response?
>
> Thanks!
>
> kevin
>
>
___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to