Thanks Tim!
That was very helpful. It ended up looking like this:
Win32Link lnk = new Win32Link();
lnk.setWebfile("files on " + request.getServerName(),
"http://localhost:8081/storage/files/Survey.doc",
"http://localhost:8081/storage/files/");
response.setContentType("application/octet-stream");
String contentDisposition = "inline; filename=" + "survey.lnk";
response.addHeader("Content-Disposition", contentDisposition);
byte [] data = lnk.getBytes();
response.setContentLength(data.length);
OutputStream out = response.getOutputStream();
out.write(data);
out.close();
----- Original Message -----
From: "Tim Reilly" <[EMAIL PROTECTED]>
To: "Slide Users Mailing List" <[EMAIL PROTECTED]>
Sent: Thursday, July 08, 2004 11:18 PM
Subject: RE: Best Practice?
> Slightly off topic to your thread. Can't help with your immediate problem
> but FWIW;
>
> You can give IE a default file name to Save As other than the your servlet
> name,
> using the filename= parameter in your response header.
>
> Content-Type = application/download
> Content-Disposition = attachment; filename=test.lnk
>
> There also a KB ticket (applies to IE5.5 SP1);
> http://support.microsoft.com/default.aspx?scid=KB;EN-US;Q279667
>
> -TR
>
>
> ---------------------------------------------------------------------
> 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]