当前位置: 代码迷 >> Java Web开发 >> 生手求解,使用struts报错Cannot retrieve definition for form bean studsForm on action /stu
  详细解决方案

生手求解,使用struts报错Cannot retrieve definition for form bean studsForm on action /stu

热度:5184   发布时间:2013-02-25 21:08:02.0
新手求解,使用struts报错Cannot retrieve definition for form bean studsForm on action /stu
严重: Servlet.service() for servlet [jsp] in context with path [/MyStruts] threw exception [javax.servlet.ServletExceptionjavax.servlet.jsp.JspException: Cannot retrieve definition for form bean studsForm on action /studs] with root cause
javax.servlet.jsp.JspException: Cannot retrieve definition for form bean studsForm on action /studs
at org.apache.struts.taglib.FormTag.lookup(FormTag.java:767)
at org.apache.struts.taglib.FormTag.doStartTag(FormTag.java:443)
at org.apache.jsp.studs_jsp._jspx_meth_html_005fform_005f0(studs_jsp.java:124)
at org.apache.jsp.studs_jsp._jspService(studs_jsp.java:96)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:224)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:928)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:987)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:539)
at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:1815)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:619)

------最佳解决方案--------------------------------------------------------
studsForm定义错了
------其他解决方案--------------------------------------------------------
是自己写错了啊,没注意啊
  相关解决方案