首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > JAVA > Java Exception >

javax.servlet.ServletException: Cannot find ActionMappings or ActionFormBeans co

2014-01-26 
TP Status 500 - -------------------------------------------------------------------------------- typ

TP 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 find ActionMappings or ActionFormBeans collection
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:825)
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:758)
org.apache.jsp.indexs_jsp._jspService(indexs_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)


root cause

javax.servlet.jsp.JspException: Cannot find ActionMappings or ActionFormBeans collection
org.apache.struts.taglib.html.FormTag.lookup(FormTag.java:798)
org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:506)
org.apache.jsp.indexs_jsp._jspx_meth_html_form_0(indexs_jsp.java:103)
org.apache.jsp.indexs_jsp._jspService(indexs_jsp.java:77)
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.28 logs.


我做的是一个spring+hibernate+struts的例子,其中一个页面出现上面的异常。
应如何解决?


<%@ page language= "java " contentType= "text/html; charset=gb2312 "%>
<%@ taglib uri= "http://jakarta.apache.org/struts/tags-bean " prefix= "bean "%>
<%@ taglib uri= "http://jakarta.apache.org/struts/tags-html " prefix= "html "%>

<html>
<head>
<title> JSP for UserForm form </title>
</head>
<body>
<html:form action= "/user ">
username : <html:text property= "username "/> <html:errors property= "username "/> <br/>
password : <html:password property= "password "/> <html:errors property= "password "/> <br/>
password2 : <html:password property= "password2 "/> <html:errors property= "password2 "/> <br/>
email : <html:text property= "email "/> <html:errors property= "email "/> <br/>
langsin : <html:text property= "langsin "/> <html:errors property= "langsin "/> please input "langsin " <br/>
<html:submit/> <html:cancel/>
</html:form>
</body>
</html>



------解决方法--------------------------------------------------------
ActionMappings

这不,是一个配置的错误,是不是web.xml配置有问题啊,或者是你的Struts-config.xml没有正确配置ActionMappings这一项
 

        

热点排行