早教吧作业答案频道 -->其他-->
开发环境: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;
}
页面报错(表单提交不进入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 属性 不存在或没有实例化,仔细检查下,解决了以上问题就差不多了.
看了 开发环境:Struts1.x...的网友还看了以下:
从太阳,禾苗,泪水,微笑,杨柳,期盼六个词语中选用三个词语任选下列一种情境,发挥想象,运用修辞手法 2020-05-21 …
Unabletoloadconfiguration.-action-file:/E:/apache 2020-06-05 …
李鸿同学在校园里浇花时发现了一只潮虫(学名鼠妇),他和小组同学对潮虫的生活环境发生了兴趣,便一起去 2020-06-29 …
小明对蜗牛的生活环境发生了兴趣,便与同伴一起去探索.他们记录了发现蜗牛的各处环境和蜗牛的数量(如表 2020-07-05 …
请高手翻译下~~~论文摘要:发展经济和保护环境、关系到人类的前途和命运,成为全球普遍关注、亟待解决 2020-07-25 …
英语翻译随着厦门经济的发展,环境的治理问题日益突出,成为制约环境发展的瓶颈.怎样治理好环境、如何采 2020-08-04 …
小科在校园里浇花时发现了一只潮虫,他和同学们对潮虫的生活环境发生了兴趣,便一起去寻找探索,他们记录了 2020-11-28 …
全世界希望巴西着重保护的自然环境是。巴西政府在1990年向联合国环境发展大会提交了,表明了改变以往以 2020-11-29 …
从“微风”“月亮”“期盼”“泪水”“微笑”六个词语中选用三个词语,任选下列一种情境,发挥想象,运用修 2020-12-05 …
人类对环境应持有的正确态度是()A.无限度地扩大自然保护区B.将人类发展、生产发展和环境发展的关系协 2020-12-24 …