File f = new File(filepath);
response.setHeader("content-disposition", "attachment;filename=youfilename.xls");
RandomAccessFile out = new RandomAccessFile(f,"r");
byte[] line = new byte[(int)out.length()];
out.read(line);
response.getOutputStream().write(line);
out.close();