早教吧 育儿知识 作业答案 考试题库 百科 知识分享

开发环境:Struts1.x+Hibernate3.x+SpringTomcat5.5页面报错(表单提交不进入Action):javax.servlet.ServletException:BeanUtils.populateorg.apache.struts.util.RequestUtils.populate(RequestUtils.java:495)org.apache.struts.action.Reques

题目详情
开发环境:Struts1.x+Hibernate3.x+Spring Tomcat5.5
页面报错(表单提交不进入Action):
javax.servlet.ServletException:BeanUtils.populate
org.apache.struts.util.RequestUtils.populate(RequestUtils.java:495)
org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.java:816)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:203)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.jb.common.filter.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:32)
root cause
java.lang.IllegalArgumentException:No bean specified
org.apache.commons.beanutils.PropertyUtils.getPropertyDescriptor(PropertyUtils.java:837)
org.apache.commons.beanutils.BeanUtils.setProperty(BeanUtils.java:934)
org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:808)
org.apache.struts.util.RequestUtils.populate(RequestUtils.java:493)
org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.java:816)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:203)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.jb.common.filter.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:32)
JSP代码:
Action代码:
private ConfigFileSecondKind item = new ConfigFileSecondKind();
public ConfigFileSecondKind getItem() {
return item;
}
public void setItem(ConfigFileSecondKind item) {
this.item = item;
}
▼优质解答
答案和解析
html标签中指定的bean or 属性 不存在或没有实例化,仔细检查下,解决了以上问题就差不多了.