日期:2014-05-18  浏览次数:20674 次

用response输出生成的Excel文件时怎样指定文件名???????????????
用的这个包生成Excel      
org.apache.poi.hssf.usermodel

我输出到客户端时文件名是调用他的action的类名,有什么办法可以指定输出的Excel的文件名呢?

------解决方案--------------------
response.setHeader( "Content-Disposition ", "attachment;filename=your_filename ");

------解决方案--------------------
路过,接分