when i deploy this page there is one error.
java.lang.IllegalStateException: No WebApplicationContext found: no ContextLoaderListener registered?
org.springframework.web.servlet.support.RequestCon textUtils.getWebApplicationContext(RequestContextU tils.java:82)
org.springframework.web.servlet.support.RequestCon text.initContext(RequestContext.java:203)
org.springframework.web.servlet.support.JspAwareRe questContext.initContext(JspAwareRequestContext.ja va:74)
org.springframework.web.servlet.support.JspAwareRe questContext.<init>(JspAwareRequestContext.java:48 )
org.springframework.web.servlet.tags.RequestContex tAwareTag.doStartTag(RequestContextAwareTag.java:6 5)
org.apache.jsp.register_jsp._jspService(register_j sp.java:80)
org.apache.jasper.runtime.HttpJspBase.service(Http JspBase.java:94)
javax.servlet.http.HttpServlet.service(HttpServlet .java:810)
org.apache.jasper.servlet.JspServletWrapper.servic e(JspServletWrapper.java:298)
org.apache.jasper.servlet.JspServlet.serviceJspFil e(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspSe rvlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet .java:810)
i am a fresh man to spring,who can tell me what is it?thank you!!
register.jsp
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt" %>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<%@ page pageEncoding="gb2312" contentType="text/html;charset=gb2312"%>
<html>
<head>
<title>用户注册</title>
</head>
<body style="text-align: center">
<form method="POST" action="/register.do">
<spring:bind path="command.*">
<font color="#FF0000">
<c:forEach items="${status.errorMessages}" var="error">
错误: <c:out value="${error}"/><br>
</c:forEach>
</font>
</spring:bind>
....... </form>
</body>
</html>


Reply With Quote
ointcut id="myCutLogging" expression="execution(* ca.nexcel.books.actions.SearchSubmit.execute(..))"/> -->