这个问题一般是formbean的问题 数据类型匹配么? 还有要注意的是再流转时 不能自己指向本身的页面要通过*.do来当一下中间层了  先这些 因为不知道你上面的程序是怎么样的 凭我遇到的问题 来给你点提示了

解决方案 »

  1.   

    No getter method for property file of bean org.apache.struts.taglib.html.BEAN找不到get方法
      

  2.   

    呵呵,这里阿~~~get/set方法的名称错了,改成getFile/setFile吧
    ...
    private FormFile file;
    public FormFile getFormFile(){
    return this.file;
    }
    public void setFormFile(FormFile file){
    this.file=file;
    }
    ...
      

  3.   

    晕顶了  看看楼上说的吧bean的规则是这样的 xxx getXxx,setXxx
      

  4.   

    get/set的方法名要和属性匹配,不然就会提示找不到get/set方法HtmlFileForm.javamport org.apache.struts.action.ActionForm;
    import org.apache.struts.upload.FormFile;
    import org.apache.struts.upload.MultipartRequestHandler;
    import org.apache.struts.action.ActionMapping;
    import javax.servlet.http.HttpServletRequest;
    public class HtmlFileForm extends ActionForm {
    public HtmlFileForm(){}
    private FormFile file;
    public FormFile getFile(){   //修改
    return this.file;
    }
    public void setFile(FormFile file){  //修改
    this.file=file;
    }
    private String fname;
    public String getFname(){
    return this.fname;
    }
    public void setFname(String fname){
    this.fname=fname;
    }
    private String fsize;
    public String getFsize(){
    return fsize;
    }
    public void setFsize(String Fsize){
    this.fsize=fsize;
    }
    }