解决方案 »

  1.   

    你这FileInputStream中的upload在哪定义的?怎么没找大呢?
      

  2.   

    String savePath = ServletActionContext.getServletContext().getRealPath("/upload/"+this.getUploadFileName());
    这步确定能找到这个地址?  你以debug模式启动下,然后在这句代码前打个断点,调试一下看看哪里抛异常。。
      

  3.   

    private File upload;//上传文件标签属性
    private String fileContentType;//上传文件类型
    private String fileFileName;//上传文件名
    public File getUpload() {
    return upload;
    }
    public void setUpload(File upload) {
    this.upload = upload;
    }
    public String getFileContentType() {
    return fileContentType;
    } public void setFileContentType(String fileContentType) {
    this.fileContentType = fileContentType;
    } public String getFileFileName() {
    return fileFileName;
    }
    public void setFileFileName(String fileFileName) {
    this.fileFileName = fileFileName;
    }
      

  4.   

    据我所知,文件上传的form只能用于文件上传,,做不了其他的是,,比如传其他的参数
      

  5.   

    据我所知用struts2可以直接转其它的参数,用servlet就需要判断了