在jstl表达式中嵌入el表达式
2016-06-16 12:40
363 查看
一、问题
在jsp中,想要这么写:
<c:url value='/resources/themes/${easyuiThemeName}/easyui.css'/>
但报错:According to TLD or attribute directive in tag file, attribute items does not accept any expressions。
意思是在attribute里不允许表达式。
二、解决
将页面的
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core"%>
改成
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt"%>
在jsp中,想要这么写:
<c:url value='/resources/themes/${easyuiThemeName}/easyui.css'/>
但报错:According to TLD or attribute directive in tag file, attribute items does not accept any expressions。
意思是在attribute里不允许表达式。
二、解决
将页面的
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core"%>
改成
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt"%>
相关文章推荐
- JSON字符串和对象相互转换实例分析
- JavaScript学习笔记九:变量作用域
- js屏蔽错误代码不让游览器显示错误提示
- javascript运算符——算术运算符
- 简单异步处理 获取bitmap 和json string
- Gson解析JsonArray
- 模块调用,datetime,time,logging,递归,双层装饰器, json,pickle迭代器和生成器
- ExtJS:Ajax基础
- video.js在IE8下无法正常播放
- JS事件委托
- javascript设计模式学习之二——this
- JS中sort函数排序用法实例分析
- 关于JS的this的情况分析和总结
- 【自学笔记】js JavaScript callback()执行线性动画
- JavaScript中判断对象类型的种种方法
- 全国省市的二级联动js方法
- JS原型对象的创建方法详解
- 浅谈 JS 创建对象的 8 种模式
- 前端程序员经常忽视的一个JavaScript面试题
- <input type="image" ...>和<img ...>的区别