1. 设http头:response.setContentType("application/vnd.ms-excel");2. 获得stream:response.getOutputStream()3. 调用jxl生成excel:我想你应该已经知道怎么用jxl这个包了吧?看看文档还是挺简单的,把结果写到response.getOutputStream()里面写就行了。