刚才好好的,改了点东西成了这个样子
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和他有关系吗?
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和他有关系吗?
解决方案 »
- 关于业务逻辑的try catch的问题
- 请问:J2EE开发过程中,可能用到的各种中间件有哪些?
- hibernate的getHibernateTemplate问题
- org.apache.catalina.core.StandardContext reload
- 急!!!使用Java如何控制windows 服务的停止和启动??????
- ejb2.0中实体bean的create方法的问题
- 高分求深圳华为外包公司JAVA笔试或面试的题目!
- ejb你真的用的上吗?
- 求《21天学通J2EE》随书附赠光盘源码
- struts中能不能这样写...........................................................
- 大家都来看看吧->帮我看看
- opencms中怎么点击连接跳到领一个页面?
<%@ 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}"/>
救救我吧,我之前成功了那么一次咋就再也不行啦~~~~
大部分书都是这么烂,根本行不通,我看到的基本书都是这样,这样的问题初学者必然会遇到:
http://www.bitscn.com/java/spring/200805/141757_2.html#
我确实也存在这个错误,现在就去试,希望能解决