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

关于smartupload的编译问题
mySmartUpload.upload();  
String   fn=mySmartUpload.getFiles().getFile(0).getFileName();
调用文件名时中文乱码,看了网上的解决方案找到SmartUpload.class修改upload()的内容如下:
String     value     =     new     String(m_binArray,     m_startData,     (m_endData     -     m_startData)     +     1, "UTF-8 ");
我现在反编译修改好后,在NetBeans   IDE   3.5.1编译,却报了一大堆错!也许对高手这个问题很简单,我实在不是很明白!
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
symbol     :   class   Files  
location:   class   com.jspsmart.upload.SmartUpload
        private   Files   m_files;
                        ^
classes/com/jspsmart/upload/SmartUpload.java   [43:1]   cannot   resolve   symbol
symbol     :   class   Request  
location:   class   com.jspsmart.upload.SmartUpload
        private   Request   m_formRequest;
                        ^
classes/com/jspsmart/upload/SmartUpload.java   [101:1]   cannot   resolve   symbol
symbol     :   class   SmartUploadException  
location:   class   com.jspsmart.upload.SmartUpload
                throws   SmartUploadException,   IOException,   ServletException
                              ^
classes/com/jspsmart/upload/SmartUpload.java   [201:1]   cannot   resolve   symbol
symbol     :   class   SmartUploadException  
location:   class   com.jspsmart.upload.SmartUpload
                throws   SmartUploadException,   IOException,   ServletException
                              ^
classes/com/jspsmart/upload/SmartUpload.java   [207:1]   cannot   resolve   symbol
symbol     :   class   SmartUploadException  
location:   class   com.jspsmart.upload.SmartUpload
                throws   SmartUploadException,   IOException,   ServletException
                              ^
classes/com/jspsmart/upload/SmartUpload.java   [248:1]   cannot   resolve   symbol
symbol     :   class   Files  
location:   class   com.jspsmart.upload.SmartUpload
        public   Files   getFiles()
                      ^
classes/com/jspsmart/upload/SmartUpload.java   [253:1]   cannot   resolve   symbol
symbol     :   class   Request  
location:   class   com.jspsmart.upload.SmartUpload
        public   Request   getRequest()
                      ^
classes/com/