I wrote a download servlet but I found it didn't run at IE5.x
IE6.x - OK
IE5.x - NG
NS - OK
My source is below. I want to know if there are better solutions
or any Common Libarary I can use.
response.setHeader("Content-Disposition",
"attachment; filename=\"" + myFileName + "\"");
response.setContentType("application/octet-stream;
name=\"" + myFileName + "\"");
String f = myFilePath;
PrintWriter out = response.getWriter();
BufferedReader in
= new BufferedReader(new FileReader(f));
String line;
while ((line = in.readLine()) != null) {
out.println(line);
}
in.close();
Thanks.
Rai
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]