response.setContentType("application/msword");
FileInputStream fin=new FileInputStream(new File(request.getRealPath("/")+"company"+File.separator+"Hr_tool"+File.separator,"AAA.doc")); 
int c=0;
while((c=fin.read())!=-1)
{
response.getOutputStream().write(c);
}
fin.close();本人使用以上代码实现文件下载(下载AAA.doc文档),但是执行的时候,跳出文件另存为窗口,默认的文件名“JSP文件名.doc”,而不是“AAA.doc”,不知道如何设置另存为的默认文件名,请教了