刚才好好的,改了点东西成了这个样子
An exception occurred processing JSP page /userlogin2.jsp at line 27
24:   </head>
25:   
26:   <body>
27:    <spring:bind path="command.*"> 
28:         <font color="red">
29:             <b>${status.errorMessage}</b>
30:         </font><br> 可能标签出错,然后我就<%@ taglib uri="/spring" prefix="spring"%>反复的删除添加,
上面的错误没了,就会出现这个错误
org.apache.jasper.JasperException: No WebApplicationContext found: no ContextLoaderListener registered?
我要疯了,spring mvc和他有关系吗?

解决方案 »

  1.   

    现在问题是我单独建立了张页面
    <%@ page language="java" import="java.util.*" pageEncoding="ISO-8859-1"%>
    <%@ taglib prefix="spring" uri="/spring"%><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
      <body>
           <spring:bind path="command.username"> 
           <input type="text" 
                        name="${status.expression}" 
                        value="${status.value}"/>
                        <td><font color="red">${status.errorMessage}</font></td>
             </spring:bind> 
      </body>
    </html>
    我在web.xml中写了
    <jsp-config>
    <taglib>
    <taglib-uri>/spring</taglib-uri>
    <taglib-location>/WEB-INF/spring.tld</taglib-location>
    </taglib>
    </jsp-config>
    就这样出错误
    org.apache.jasper.JasperException: An exception occurred processing JSP page /userlogin3.jsp at line 74: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    5: <html>
    6:   <body>
    7:        <spring:bind path="command.username"> 
    8:        <input type="text" 
    9:                     name="${status.expression}" 
    10:                     value="${status.value}"/>
    救救我吧,我之前成功了那么一次咋就再也不行啦~~~~
      

  2.   

    我来帮你,首先楼主是初学者,很容易被书给误人子弟了,
    大部分书都是这么烂,根本行不通,我看到的基本书都是这样,这样的问题初学者必然会遇到:
    http://www.bitscn.com/java/spring/200805/141757_2.html#
      

  3.   

    Neither Errors instance nor plain target object for bean name 'command' available as request
    我确实也存在这个错误,现在就去试,希望能解决
      

  4.   

    果真如此,已经解决,还是要感谢M_song的帮忙,这次分有点少,下次补回