JSP中attribute value does not accept any expressions
来源:互联网 发布:java抽象类构成 编辑:程序博客网 时间:2024/05/22 10:49
JSP中attribute value does not accept any expressions
2007-01-28 15:15
JSP中出现According to TLD or attribute directive in tag file, attribute value does not accept any expressions
应用部署运行的时候出现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>
<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"%>
就没有问题了
- JSP中attribute value does not accept any expressions
- attribute value does not accept any expressions
- Attribute Value Does Not Accept Any Expressions
- JSP中出现According to TLD or attribute directive in tag file, attribute value does not accept any expressions
- JSTL:JSP中出现According to TLD or attribute directive in tag file, attribute value does not accept any expressions
- JSP中出现According to TLD or attribute directive in tag file, attribute value does not accept any expressions
- jsp中attribute value does not accept any expression
- attribute test does not accept any expressions
- attribute test does not accept any expressions
- According to TLD or attribute directive in tag file, attribute value does not accept any expressions
- According to TLD or attribute directive in tag file, attribute value does not accept any expressions
- According to TLD or attribute directive in tag file, attribute value does not accept any expressions
- According to TLD or attribute directive in tag file, attribute value does not accept any expressions
- According to TLD or attribute directive in tag file, attribute value does not accept any expressions
- According to TLD or attribute directive in tag file, attribute value does not accept any expressions
- According to TLD or attribute directive in tag file, attribute value does not accept any expressions
- According to TLD or attribute directive in tag file, attribute value does not accept any expressions
- According to TLD or attribute directive in tag file, attribute value does not accept any expressions
- window.showModalDialog() and window.showModelessDialog()
- .net2.0中的GRIDVIEW控件使用
- 稳定的软件
- 使用负载均衡技术建设高负载的网络站点(经典文章)
- 双网卡访问双网络解决方法
- JSP中attribute value does not accept any expressions
- 一步一步教你网站同步镜像
- JSTL包含以下的标签
- 主页加速技巧
- PHP自定义异常处理
- Ajax技术概述
- IP地址基础知识
- CCNA和CCNP的培训目标和适用人群
- 看了《乡村爱情》,很感人,逛了街