在jstl表达式中嵌入el表达式

一、问题

在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://www.cnblogs.com/mabaishui/p/5590626.html