在action中添加方法
/**
* 个人工单统计生成Excel文件
*
* @param mapping
* @param form
* @param request
* @param response
* @return
* @throws Exception
* //20091113改为只要全网,地网的代码删了
*/
public void report_sms(ActionMapping mapping, ActionForm form,
HttpServletRequest request, HttpServletResponse response)
throws Exception {
try {
String draftertime_s = request.getParameter("draftertime_s4");
String draftertime_e = request.getParameter("draftertime_e4");
Flow fl = new Flow();
String uploadPath = Config.getProperty("upload_Path_flow");
String targetfile = uploadPath + fl.getRandom() + ".xls";
String[][] result = fl.report_sms(draftertime_s,
draftertime_e);
File file = new File(targetfil