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