0
我有一個要求將jsp內容存儲在oracle數據庫中。我從數據庫中檢索它並將其存儲在一個字符串中,並通過將escapeXML設置爲false來輸出它,從而呈現html。在數據庫中存儲JSP標籤
<c:out value="${myProfileForm.skinElement.footerContent}" escapeXml="false"/>
這工作得很好,除了其最終解決,例如HTML,而不是標籤標籤:
<c:choose>
<c:when test="${displayLinks=='true'}">
<jsp:include page="header-myprofile.jsp" />
</c:when>
<c:when test="${displayLinks=='false'}">
<jsp:include page="header-no-menu.jsp" />
</c:when>
<c:otherwise>
<jsp:include page="header-myprofile.jsp" />
</c:otherwise>
</c:choose>
有沒有存儲在數據庫中的JSP標籤的方法嗎?
謝謝。看起來像是長期的解決方案。在短期內,我必須使用jsp – teslaza 2011-02-10 12:30:38