| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 1019 人关注过本帖
标题:跪求帮忙
只看楼主 加入收藏
域外豺狼
Rank: 1
等 级:新手上路
帖 子:2
专家分:0
注 册:2008-4-22
收藏
 问题点数:0 回复次数:4 
跪求帮忙
在做系统时出现了问题,怎么办啊??
---------------------
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.html.FormTag.lookup(FormTag.java:767)
    org.apache.struts.taglib.html.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.html.FormTag.lookup(FormTag.java:767)
    org.apache.struts.taglib.html.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 
2008-04-22 09:58
Ethip
Rank: 5Rank: 5
等 级:贵宾
威 望:15
帖 子:771
专家分:0
注 册:2008-1-18
收藏
得分:0 
回复 1# 的帖子
错误的内容太专业,不好懂啊!怎么办?
2008-04-22 10:20
菜鸟也疯狂
Rank: 1
等 级:新手上路
帖 子:134
专家分:0
注 册:2007-3-20
收藏
得分:0 
javax.servlet.jsp.JspException: Cannot retrieve definition for form bean addMemberForm on action /addMember 好像不能得到"/addMember"里定义的addMemberForm.
先看看你配置文件Action里name属性里面的Form是否定义了,或者是否正确书写.如果没有问题,再看看你是否有addMemberForm里定义的form类(如果是整合spring并全权委托管理的话就没有必要,但检查addMemberForm的class属性是否正确).

2008-04-23 20:03
lai0684
Rank: 1
等 级:新手上路
帖 子:2
专家分:0
注 册:2008-4-24
收藏
得分:0 
学习了,谢谢
2008-04-24 11:15
huhuanqadn
Rank: 1
等 级:新手上路
帖 子:37
专家分:0
注 册:2007-11-18
收藏
得分:0 
似乎你在struts中配置了actionForm,但是你在静态页面中使用的是<form>
而不是<html:form>.
2008-05-04 19:07
快速回复:跪求帮忙
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.038425 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved