在sturts中用SmartUpload上传卡死是怎么回事?

来源:百度知道 编辑:UC知道 时间:2024/09/25 22:25:54
action中是这样写的
System.out.println("******action**********");
SmartUpload su = new SmartUpload();
su.initialize(this.getServlet().getServletConfig(),request,response);
su.upload();
int num = su.save("D:/myfile");
不大,很小的
是不是formben的问题呢?但是我的formben里没有页面对应的属性啊

文件很大吗,很大的话要分割上传,不然tomcat吃不消,直接内存溢出了

谁还用那东西,STRUTS当然用commonfile

struts已经整合了common-fileupload了,为什么还要用已经破产的SmartUpload呢?