jstl According to TLD or attribute directive in tag file
来源:互联网 发布:怎样成为一名网络客服 编辑:程序博客网 时间:2024/05/18 00:55
应用部署运行的时候出现JSP异常, 发生在使用JSTL库的时候: According to TLD or attribute directive in tag file, attribute value does not accept any expressions, 可能是因为使用了JSP2.0版本, 同时又没有使用JSTL core库的备用版本(RT库), 以下有两种处理方法:
1. 修改web.xml.
<web-app xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" version="2.4">
改为2.3版本的
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
2. 使用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"%>
就没有问题了
<%@ taglib uri="http://java.sun.com/jstl/sql" prefix="c"%>
改为
<%@ taglib uri=http://java.sun.com/jstl/sql_rt prefix="sql"%>
- jstl According to TLD or attribute directive in tag file
- JSTL Exception: According to TLD or attribute directive in tag file, attribute items does not accept
- jstl 错误According to TLD or attribute directive in tag file, attribute value does not ac
- According to TLD or attribute directive in tag file,
- According to TLD or attribute directive in tag file
- According to TLD or attribute directive in tag file异常
- jstl 结合struts 版本问题 According to TLD or attribute directive in tag file
- JSTL配置问题:According to TLD or attribute directive in tag file
- 在使用JSTL时出现According to TLD or attribute directive in tag file
- JSTL配置问题:According to TLD or attribute directive in tag file
- JSTL:JSP中出现According to TLD or attribute directive in tag file, attribute value does not accept any expressions
- 使用JSTL 报According to TLD or attribute directive in tag file, attribute items does not accept any expressions
- JSTL的问题(According to TLD or attribute directive in tag file, attribute value does not accept any expressions)
- Correction: JSTL and expression language problem: According to TLD or attribute directive in tag file, attribute value does not
- According to TLD or attribute directive in tag file, attribute items does not accept any expressions JSTL库错误
- JSTL格式化日期时报错:According to TLD or attribute directive in tag file, attribute value does not accept an
- jstl 报错 According to TLD or attribute directive in tag file, attribute test does not accept any expr
- According to TLD or attribute directive in tag file, attribute value does not accept any expressions
- 如何编写高效的Java程序?
- 马云经典语录
- 海盗分金的完整解析版
- svn学习笔记
- 已通过GMP企业仍存在的问题
- jstl According to TLD or attribute directive in tag file
- C语言面试题大汇总
- JFreeChat的介绍
- jstl:sql标签介绍
- 常见编译错误---参数设置
- 如何隐藏控制台窗口?
- Delphi高级开发指南读后感(一)
- jstl查询SQL Server 2000数据库实例
- JS脚本执行后CSS失效的问题