在jstl表达式中嵌入el表达式
发布日期:2021-08-25 04:21:16 浏览次数:1 分类:技术文章

本文共 346 字,大约阅读时间需要 1 分钟。

一、问题

在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"%>

 

转载地址:https://blog.csdn.net/weixin_33843947/article/details/85819129 如侵犯您的版权,请留言回复原文章的地址,我们会给您删除此文章,给您带来不便请您谅解!

上一篇:苹果手机微信分享代码失效
下一篇:CORS 专题

发表评论

最新留言

网站不错 人气很旺了 加油
[***.192.178.218]2024年04月27日 16时54分39秒