日期:2014-05-18  浏览次数:20603 次

在servlet中SmartUpload 上传文件不成功????
SmartUpload   su   =   new   SmartUpload();
                ServletConfig   context   =   this.getServletConfig();
                su.initialize(context,   request,   response);
                try   {
                        su.upload();
                        int   counft   =   su.save( "/upload/ ");
                        System.out.println(counft   +   "上传了多少个文件 ");

                }   catch   (SmartUploadException   ex)   {
                        ex.printStackTrace();
                }
这样写上传文件为什么不行?????????


------解决方案--------------------
路径存在吗?
不存在要先创建路径