今天使用spring mvc配置jstl的时候报错
SEVERE: Servlet.service() for servlet jsp threw exception
org.apache.jasper.JasperException: /WEB-INF/bizroot/bag/teach_upload/list.jsp (line: 39, column: 5) According to TLD or attribute directive in tag file, attribute test does not accept any expressions
如果按tomcat6的方法配置,可能出现以下错误
taglib definition not consistent with specification version
最后发现是jsp引入jstl标签的时候需要这么写
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
在 tomcat7 下引入jstl的时候是不需要配置web.xml的!!!
我的web.xml表头是
<?xml version="1.0" encoding="UTF-8"?> <web-app version="3.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3.0.xsd" id="WebApp_ID" >