Run JSTL code that is stored in the database
I am using Spring and tiles
I am trying this type of code
<tiles:importAttribute name='cssBase' ignore='true' />
<c:forEach items='${cssBase}' var='cssfile'>
<link rel='stylesheet' href='${pageContext.request.contextPath}/${cssfile}'>
</c:forEach>
and I want this type to fit into my jsp page
<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">
but i am writing <c:out value="${head}"></c:out>
this code to my jsp page
but give me an output similar to
<tiles:importAttribute name='cssBase' ignore='true' />
<c:forEach items='${cssBase}' var='cssfile'>
<link rel='stylesheet' href='${pageContext.request.contextPath}/${cssfile}'>
</c:forEach>
Give me another way to do this ... thanks in advance
+3
Ashish vaghasiya
source
to share
1 answer
# JSTL tag
<c:import url="headerAccountCSS.html" />
+3
Janak dhanani
source
to share