<?xml version="1.0"encoding="ISO-8859-1"?> <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN" "">
4
java.lang.IllegalStateException: No WebApplicationContext found: no ContextLoaderListener registered? at org.springframework.web.servlet.support.RequestContextUtils.getWebApplicationContext(RequestC o ntextUtils.java:84) at org.springframework.web.servlet.support.RequestContext.initContext(RequestContext.java:206) at org.springframework.web.servlet.support.JspAwareRequestContext.initContext(JspAwareRequestCon t ............
那么必须从Action类中定向到login.jsp,而不能直接打开login.jsp页面。 否则, <spring:bind path="command.username"> 标签中的command对象取不到, 会报如下错误: Neither Errors instance nor plain target object for bean name 'command' available as request attribute