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" > 
  • 相关阅读:
    time模块
    日期和时间
    异常和函数
    finally子句
    自定义异常
    异常中的else
    全捕捉
    排序算法---希尔排序
    排序算法---直接插入排序
    排序算法---快速排序
  • 原文地址:https://www.cnblogs.com/cczhoufeng/p/2949362.html
Copyright © 2011-2022 走看看