【发布时间】:2012-06-06 19:37:34
【问题描述】:
是否可以在自定义标记类中包含包含 jstl 标记的 .jsp 文件(在我的特定情况下,不能选择使用标记文件)?
例如,我需要创建自定义标签来绘制包含页面范围变量内容的表格。 table.jsp 是:
<table>
<thead>
<tr>
<c:if test="${isAdmin }">
<th><fmt:message bundle="${prop}" key="orders.table.selected" /></th>
</c:if>
</tr>
more code here
<table>
我尝试使用 pageContext.include() 方法包含此 jsp,但我在 html 页面上获得了所有 jstl 标记
【问题讨论】:
标签: jsp custom-tags