我使用Spring和瓷磚它們存儲在數據庫
我試圖執行代碼
這種類型<tiles:importAttribute name='cssBase' ignore='true' />
<c:forEach items='${cssBase}' var='cssfile'>
<link rel='stylesheet' href='${pageContext.request.contextPath}/${cssfile}'>
</c:forEach>
和我想這種類型了把我的JSP
頁面運行JSTL代碼<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>
給我另一種方式來做到這一點....在此先感謝
,我也面臨着同樣的問題,如果你將得到解決,那麼請告訴我。 – 2014-12-02 04:57:14