View Single Post
Old 07-27-2004, 04:15 PM   #2 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,544
sde is on a distinguished road
i found this, it looks like it is going to work
Code:
String str = "testing";
  byte[] outBytes = str.getBytes();
  response.setContentType ("application/x-msexcel");
  response.setContentLength(outBytes.length);
  
  response.setHeader ("Content-Disposition", "inline;filename=\"ComputeOrder.csv\""); 

  byte[] buf = outBytes;
  int length = 0;
  ServletOutputStream op = response.getOutputStream ();
  op.write(buf,0,buf.length);
  op.close();
__________________
Mike
sde is offline   Reply With Quote