iis服务器助手广告广告
返回顶部
首页 > 资讯 > 精选 >使用JSTL库的时候: According to TLD or attribute directive in tag file, attribute value does not accept any
  • 908
分享到

使用JSTL库的时候: According to TLD or attribute directive in tag file, attribute value does not accept any

2023-06-03 02:06:07 908人浏览 薄情痞子
摘要

应用部署运行的时候出现jsP异常, 发生在使用JSTL库的时候: According to TLD or attribute directive in tag file, attribute value does not accept an

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

修改WEB.xml.

改为2.3版本的


使用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"%>

就没有问题了

[@more@]

--结束END--

本文标题: 使用JSTL库的时候: According to TLD or attribute directive in tag file, attribute value does not accept any

本文链接: https://www.lsjlt.com/news/232218.html(转载时请注明来源链接)

有问题或投稿请发送至: 邮箱/279061341@qq.com    QQ/279061341

本篇文章演示代码以及资料文档资料下载

下载Word文档到电脑,方便收藏和打印~

下载Word文档
猜你喜欢
软考高级职称资格查询
编程网,编程工程师的家园,是目前国内优秀的开源技术社区之一,形成了由开源软件库、代码分享、资讯、协作翻译、讨论区和博客等几大频道内容,为IT开发者提供了一个发现、使用、并交流开源技术的平台。
  • 官方手机版

  • 微信公众号

  • 商务合作