转载/JSTL/attribute value does not accept any express
2016-04-22 14:55
519 查看
According to TLD or attribute directive in tag file, attribute value does not accept any express
JSP使用jstl时(<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core"%>),出现了According to TLD or attribute directive in tag file, attribute value does not accept 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页面中的<%@ taglib prefix="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核心库备用板的标签描述文件。
原文链接:http://blog.sina.com.cn/s/blog_6b39e1d10100mwp4.html
相关文章推荐
- iOS----自定义UIView,绘制一个UIView
- vue中的指令
- UISegmentedControl添加图片不显示的问题
- UI基本控件---UITextField
- UIButton中图片与文字的位置设置
- UILabel
- iOS中UITableView分割线左侧顶齐
- iOS中UITableView分割线左侧顶齐
- rpmbuild 中文手册
- iOS之statusBar相关设置(UIStatusBar) 你看这里就足够了
- API Guides——OpenGL ES
- F4IF_INT_TABLE_VALUE_REQUEST&nbs…
- quickV3动作action
- UIView的生命周期总结
- rabbitmq学习2:Work Queues
- 数据库Connections could not be acquired from the underlying database!
- 转载:检测到有潜在危险的 Request.Form 值
- UIButton利用分类扩展方法(封装)
- UI for iOS(四) -- UIButton添标题文字
- CI 笔记(easyui js命令)