Spring的问题?高手请进?<spring:bind 的错误??
HTTP Status 500 -
--------------------------------------------
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException: Exception in JSP: /register.jsp:11
8: </head>
9: <body style= "text-align: center ">
10: <form method= "POST " action= "/register.do ">
11: <spring:bind path= "command.* ">
12: <font color= "#FF0000 ">
13: <c:forEach
14: items= "${status.errorMessages} "
Stacktrace:
org.apache.jasper.servlet.JspServletWrapper.handle
JspException(JspServletWrapper.java:504)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:387)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
root cause
java.lang.IllegalStateException: No WebApplicationContext found: no ContextLoaderListener registered?
org.springframework.web.servlet.support.RequestContextUtils.getWebApplicationContext(RequestContextUtils.java:84)
org.springframework.web.servlet.support.RequestContext.initContext(RequestContext.java:210)
org.springframework.web.servlet.support.JspAwareRequestContext.initContext(JspAwareRequestContext.java:75)
org.springframework.web.servlet.support.JspAwareRequestContext. <init> (JspAwareRequestContext.java:49)
org.springframework.web.servlet.tags.RequestContextAwareTag.doStartTag(RequestContextAwareTag.java:74)
org.apache.jsp.register_jsp._jspService(org.apache.jsp.register_jsp:69)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
note The full stack trace of the root cause is available in the Apache Tomcat/5.5.15 logs.
--------------------------------------------
Apache Tomcat/5.5.15
我的QQ:50721187请加我:
------解决方案--------------------很无语
------解决方案--------------------web.xml中 <listener>
<listener-class>
org.springframework.web.context.ContextLoaderListener </listener-class>
</listener>
有没有???
我的异常网推荐解决方案:
Java画图,用GeneralPath还是用DrawLine,DrawOval之类的.解决办法