【发布时间】:2009-08-06 17:51:43
【问题描述】:
我想通过透明地包含它们来进一步简化我的 JSP。例如,这是我要删除的行:
<%@ include file="/jsp/common/include.jsp"%>
include.jsp 文件基本上声明了我正在使用的所有标记库。我在 WebSphere 6.0.2 上运行这个我相信并且已经尝试过这个配置:
<!-- Include this for every JSP page so we can strip an extra line from the JSP -->
<jsp-config>
<jsp-property-group>
<url-pattern>*.htm</url-pattern>
<!--<include-prelude>/jsp/common/include.jsp</include-prelude>-->
<include-coda>/jsp/common/include.jsp</include-coda>
</jsp-property-group>
</jsp-config>
include-prelude 和 include-coda 都不起作用。
我读到其他 WebSphere 用户无法启动并运行它;但是,tomcat 用户可以。
【问题讨论】: