jsp编程实例-附件下载功能的实现
浏览器响应用户的下载请求:
public downloadfile(String filepath,String filename,String fileTrueName,HttpServletResponse response,java.io.Writer aOut)
{
String fix = “”;
BufferedInputStream bis=null;
BufferedOutputStream bos=null;
try
{
int findex=fileTrueName.indexOf(“.”);
...












