急求?100分在线等 这个问题一般是formbean的问题 数据类型匹配么? 还有要注意的是再流转时 不能自己指向本身的页面要通过*.do来当一下中间层了 先这些 因为不知道你上面的程序是怎么样的 凭我遇到的问题 来给你点提示了 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 No getter method for property file of bean org.apache.struts.taglib.html.BEAN找不到get方法 呵呵,这里阿~~~get/set方法的名称错了,改成getFile/setFile吧...private FormFile file;public FormFile getFormFile(){ return this.file;}public void setFormFile(FormFile file){ this.file=file;}... 晕顶了 看看楼上说的吧bean的规则是这样的 xxx getXxx,setXxx 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; }} java中BufferedReader的使用 获取数据库内容时出现问题,望大侠们帮助!感激不尽 大家帮忙看看这个算法的题目该怎么写啊??? Java栈与堆又一篇烂文 Java开发的程序打包成exe文件出现的问题 难题 大家来想个简单的代码 怎么才能让eclipse运行的时候不在eclipse的console显示结果呢? DB2日期加减问题!!!!!!!!!!!!!!!!!!!! String[]字符串数组问题?----在线等,100分 菜鸟问题,如何实现屏幕的不闪烁? 高分请教界面开发问题
...
private FormFile file;
public FormFile getFormFile(){
return this.file;
}
public void setFormFile(FormFile file){
this.file=file;
}
...
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;
}
}