【发布时间】:2014-09-22 08:00:51
【问题描述】:
我正在使用 Spring 和瓷砖
我正在尝试执行这种类型的代码
<tiles:importAttribute name='cssBase' ignore='true' />
<c:forEach items='${cssBase}' var='cssfile'>
<link rel='stylesheet' href='${pageContext.request.contextPath}/${cssfile}'>
</c:forEach>
我想把这种类型放在我的jsp页面中
<link rel="stylesheet" href="/account/css/bootstrap/bootstrap.min.css">
<link rel="stylesheet" href="/account/css/bootstrap/base.css">
<link rel="stylesheet" href="/account/css/bootstrap/datatable.bootstrap.css">
<link rel="stylesheet" href="/account/css/bootstrap/jquery-ui.css">
<link rel="stylesheet" href="/account/css/bootstrap/bootstrap-select.css">
<link rel="stylesheet" href="/account/css/bootstrap/bootstrap-select.min.css">
<link rel="stylesheet" href="/account/css/bootstrap/jquery.mCustomScrollbar.css">
但我写的是<c:out value="${head}"></c:out>
这段代码进入我的jsp页面
但是给我输出看起来像
<tiles:importAttribute name='cssBase' ignore='true' />
<c:forEach items='${cssBase}' var='cssfile'>
<link rel='stylesheet' href='${pageContext.request.contextPath}/${cssfile}'>
</c:forEach>
给我另一种方法来做到这一点....提前谢谢
【问题讨论】:
-
我也面临同样的问题,如果你能得到解决方案,请告诉我。
标签: jsp spring-mvc jstl tiles