1
我無法想出將<c:set>
的值設置爲另一個JSP標記的結果。無法將JSP標記的結果賦值爲c的值:set
這裏是我的代碼:
<c:set var="desc" value="<c:choose>
<c:when test="${model.totalHits < 200}">${model.totalHits}</c:when>
<c:otherwise>${model.results.size()}</c:otherwise></c:choose>
positions at
<c:forEach items="${model.metaCompanies}" var='item' varStatus='status'>
${item} including ${model.metaDescsingleCompany}
</c:forEach>
related to ${model.querymetacompany}."/>
獲取此異常:
org.apache.jasper.JasperException: Unterminated <c:set tag
難道我做錯了什麼?有沒有其他方法可以實現這種場景?
太棒了!謝謝@BalusC – Sthita