zoukankan      html  css  js  c++  java
  • 错误处理——According to TLD or attribute directive in tag file, attribute test does not accept any expres

     应用部署运行的时候出现JSP异常, 发生在使用JSTL库的时候: According to TLD or attribute directive in tag file, attribute value does not accept any expressions, 可能是因为使用了JSP2.0版本, 同时又没有使用JSTL core库的备用版本(RT库), 一种简单的解决方法是使用JSTL core RT库

     

    JSTL core库的有两种taglib伪指令, 其中RT库即是依赖于JSP传统的请求时属性值, 而不是依赖于EL来实现(称为EL库.JSP2.0将支持EL)

    JSP中使用<%@ taglib uri=http://java.sun.com/jstl/core prefix="c"%>在2.3版本都可以,在2.4就不行了, 难道是版本不兼容吗?

    只要将

    <%@ taglib uri="http://java.sun.com/jstl/core" prefix="c"%>

    改为

    <%@ taglib uri=http://java.sun.com/jstl/core_rt prefix="c"%>

    2018-04-11更新

    今天遇到了这个问题,解决方法参考上面的将 <%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt" %>改为<%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt_rt" %>顺利解决!
  • 相关阅读:
    iOS 面试题汇总
    iOS管理文件和目录
    文件管理
    Cocoapods依赖管理
    IOS开发几何类方法 CGGeometry.h文件
    CGContext
    respondsToSelector的相关使用
    Java数组5作业(2015-8-27)
    Java错误1(2015-8-27)
    Java数组4(2015-8-27)
  • 原文地址:https://www.cnblogs.com/jpfss/p/8795892.html
Copyright © 2011-2022 走看看