当前位置: 代码迷 >> Java Web开发 >> 跪求帮忙
  详细解决方案

跪求帮忙

热度:226   发布时间:2008-04-22 09:58:49.0
跪求帮忙
在做系统时出现了问题,怎么办啊??
---------------------
javax.servlet.ServletException: Cannot retrieve definition for form bean addMemberForm on action /addMember
    org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:846)
    org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:779)
    org.apache.jsp.addMember_jsp._jspService(addMember_jsp.java:97)
    org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:802)


root cause

javax.servlet.jsp.JspException: Cannot retrieve definition for form bean addMemberForm on action /addMember
    org.apache.struts.taglib.FormTag.lookup(FormTag.java:767)
    org.apache.struts.taglib.FormTag.doStartTag(FormTag.java:443)
    org.apache.jsp.addMember_jsp._jspx_meth_html_form_0(addMember_jsp.java:113)
    org.apache.jsp.addMember_jsp._jspService(addMember_jsp.java:87)
    org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

HTTP Status 500 -

--------------------------------------------------------------------------------

type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

javax.servlet.ServletException: Cannot retrieve definition for form bean addMemberForm on action /addMember
    org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:846)
    org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:779)
    org.apache.jsp.addMember_jsp._jspService(addMember_jsp.java:97)
    org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:802)


root cause

javax.servlet.jsp.JspException: Cannot retrieve definition for form bean addMemberForm on action /addMember
    org.apache.struts.taglib.FormTag.lookup(FormTag.java:767)
    org.apache.struts.taglib.FormTag.doStartTag(FormTag.java:443)
    org.apache.jsp.addMember_jsp._jspx_meth_html_form_0(addMember_jsp.java:113)
    org.apache.jsp.addMember_jsp._jspService(addMember_jsp.java:87)
    org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:802)


note The full stack trace of the root cause is available in the Apache Tomcat/5.0.30 logs.


--------------------------------------------------------------------------------

Apache Tomcat/5.0.30
搜索更多相关主题的帖子: definition  action  

----------------解决方案--------------------------------------------------------
回复 1# 的帖子
错误的内容太专业,不好懂啊!怎么办?
----------------解决方案--------------------------------------------------------
javax.servlet.jsp.JspException: Cannot retrieve definition for form bean addMemberForm on action /addMember 好像不能得到"/addMember"里定义的addMemberForm.
先看看你配置文件Action里name属性里面的Form是否定义了,或者是否正确书写.如果没有问题,再看看你是否有addMemberForm里定义的form类(如果是整合spring并全权委托管理的话就没有必要,但检查addMemberForm的class属性是否正确).
----------------解决方案--------------------------------------------------------
学习了,谢谢
----------------解决方案--------------------------------------------------------
似乎你在struts中配置了actionForm,但是你在静态页面中使用的是<form>
而不是<html:form>.
----------------解决方案--------------------------------------------------------
  相关解决方案