protected StreamInfo getStreamInfo(ActionMapping arg0, ActionForm arg1,
HttpServletRequest request, HttpServletResponse response) throws Exception {
String contentType="application/msword";
//String filed= request.getParameter("filed");
//String filename = request.getParameter("fileName");
//String iso_filed=new String(filed.getBytes("iso-8859-1"),"gbk");
//工程内的文件就可以
//String root=servlet.getServletContext().getRealPath("/"); 
//String filePath = root+"\\"+filed+"\\"+filename; //指定的文件总是下载不了
File file = new File("E:\\file\\yeyang\\dwr.rar");
System.out.println(file.getAbsolutePath());

response.setContentType("application/x-msdownload;charset=gbk");
response.setHeader("Content-Disposition","attachment; filename="
+new String("dwr.rar".getBytes("gbk"),"iso-8859-1"));
return new FileStreamInfo(contentType, file);
}