我想通过透明地包含它们来进一步简化我的JSP.例如,这是我想删除的行:
@H_404_2@<%@ include file="/jsp/common/include.jsp"%>
include.jsp文件基本上声明了我正在使用的所有标签库.我在WebSphere 6.0.2上运行这个我相信并已经尝试过这个配置:
@H_404_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>包括前奏和包含coda都不行.
解决方法
jsp-property-group在JSP 2.0(i.o.w. Servlet 2.4)中引入. Websphere 6.0是Servlet 2.3.
所以你有3个选择:
>忘记了>升级Websphere.>替换Websphere.