开发环境:Struts1.x+Hibernate3.x+Spring Tomcat5.5 页面报错(表单提交不进入Action):javax.servlet.ServletException:BeanUtils.populateorg.apache.struts.util.RequestUtils.populate(RequestUtils.java:495)org.apache.struts.action.Reques
来源:学生作业帮助网 编辑:作业帮 时间:2024/11/17 16:47:54
开发环境:Struts1.x+Hibernate3.x+Spring Tomcat5.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;
}
开发环境:Struts1.x+Hibernate3.x+Spring Tomcat5.5 页面报错(表单提交不进入Action):javax.servlet.ServletException:BeanUtils.populateorg.apache.struts.util.RequestUtils.populate(RequestUtils.java:495)org.apache.struts.action.Reques
html标签中指定的bean or 属性 不存在或没有实例化,仔细检查下,解决了以上问题就差不多了.