According to TLD or attribute directive in tag file, attribute value does not accept any expression
来源:互联网 发布:淘宝智能版装修素材 编辑:程序博客网 时间:2024/06/16 06:23
JSP使用jstl时(<%@ taglibprefix="c"uri="http://java.sun.com/jstl/core"%>),出现了Accordingto TLD or attribute directive in tag file, attribute value does notaccept any express的错误。
使用的是jstl-1.0.2.jar和standard-1.0.6,而web.xml中则是http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd。估计是版本不兼容的问题,但具体原因没搞清楚。
网上搜了下,解决方法有两种:
一种是将http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd改成http://java.sun.com/xml/ns/javaee/web-app_2_3.xsd;
另一种是将JSP页面中的<%@ taglibprefix="c"uri="http://java.sun.com/jstl/core"%>改成<%@taglib prefix="c"uri="http://java.sun.com/jstl/core_rt"%>。在jstl-1.0.2.jar下的META-INF中有一个c.tld还有一个c-rt.tld,后一个好像是jstl核心库备用板的标签描述文件。
结果:第一种有效,第二种不可以!
使用的是jstl-1.0.2.jar和standard-1.0.6,而web.xml中则是http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd。估计是版本不兼容的问题,但具体原因没搞清楚。
网上搜了下,解决方法有两种:
一种是将http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd改成http://java.sun.com/xml/ns/javaee/web-app_2_3.xsd;
另一种是将JSP页面中的<%@ taglibprefix="c"uri="http://java.sun.com/jstl/core"%>改成<%@taglib prefix="c"uri="http://java.sun.com/jstl/core_rt"%>。在jstl-1.0.2.jar下的META-INF中有一个c.tld还有一个c-rt.tld,后一个好像是jstl核心库备用板的标签描述文件。
结果:第一种有效,第二种不可以!
阅读全文
0 0
- According to TLD or attribute directive in tag file, attribute value does not accept any expression
- According to TLD or attribute directive in tag file, attribute action does not accept any expression
- According to TLD or attribute directive in tag file, attribute items does not accept any expression
- According to TLD or attribute directive in tag file, attribute [test] does not accept any expression
- 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
- 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
- write json
- 将应用配置信息写在注册表中
- Spring MVC学习历程<三>Spring MVC 控制层Controller
- Mybatis动态SQL之判断参数值
- Http中各状态码的意义
- According to TLD or attribute directive in tag file, attribute value does not accept any expression
- 去掉导航栏下面的黑线
- Spring MVC控制层封装的数据在前台如何访问?
- 关于JavaScript拼接字符串问题
- [Java算法分析与设计]二叉树的遍历
- JSTL关于<c:forEach>用法
- mysql分表后进行合并
- 动态规划学习笔记
- 两层c:forEach循环嵌套