早教吧作业答案频道 -->其他-->
开发环境: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...的网友还看了以下:
与椭圆x^2/9+y^2/4=1有相同焦点,且过(-5,4)的椭圆方程是什么?我的解法:c^2=a 2020-05-15 …
Matlab程序:错误在哪里建立函数文件fun5.mfunction dy=fun5(t,y)dy 2020-05-16 …
二次函数y=-x2+mx的图象如图,对称轴为直线x=2,若关于x的一元二次方程-x2+mx-t=0 2020-05-17 …
设A为实对称矩阵,a1=(1,1,3)t,a2=(4,5,a)t分别是属于A的相异特征值b1,b2 2020-06-22 …
如果下面的DNA双螺旋从左向右进行转录,指出那条链是编码链.并写出转录产物的顺序?5’-A-T-C 2020-06-26 …
某校数学课外小组利用数轴为学校门口的一条马路设计植树方案如下:第k棵树种植在点xk处,其中x1=1 2020-06-27 …
判断题1,已知工作效率是a,时间是t,工作总量是c=axt.当a=5.8,t=7时,c=39.判断 2020-07-26 …
看图完成对话,每空一词。1.A.thekeysonthedresser?BNotheyare.2.A 2020-10-30 …
1.已知a*x^3=b*y^3=c*z^3且1/x+1/y+1/z=1求证(a*x^2+b*y^2+ 2020-10-31 …
已知α1=(1,0,1)Tα2=(0,1,1)Tα3=(1,3,5)T不能由β1=(1,1,1)T, 2020-12-23 …