zoukankan      html  css  js  c++  java
  • tomcat7 配置 jstl 东师理想

    今天使用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" > 
  • 相关阅读:
    scala学习手记7
    scala学习手记6
    scala学习手记5
    scala学习手记4
    scala学习手记3
    scala学习手记2
    Scala学习手记1
    Java实现的一个小说采集程序
    Java的值传递和引用传递
    java 使用反射
  • 原文地址:https://www.cnblogs.com/cczhoufeng/p/2949362.html
Copyright © 2011-2022 走看看