Hi,

Is this what you're trying to do?

response.setHeader("Content-disposition",
        "attachment; filename=\""+pdfFile+"\"");


Regards,
Daniel

On Sat, 3 Apr 2004, Dave Briccetti wrote:

> My program provides vCalendar files (for import into PIMs and the like),
> but I'm unable to set the file extension.
>
> I have tried
>       data.setContentType("text/plain");
> and
>       data.setContentType("x-vCalendar");
> and even
>       data.setContentType("x-vCalendar; name="event.vcs");
>
> But I can't get the browser's download dialog to show the proposed
> name I want, "event.vcs". I tried naming the Velocity template
> event.vcs, but that didn't work.
>
> I want the smoothest way for the user to fetch the file and import it
> into the PIM.
>
> Thanks.
>
> --
> Dave Briccetti Software Consulting
> http://www.davebsoft.com, (925) 945-7565
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to