我想通过透明地包含它们来进一步简化我的JSP.例如,这是我要删除的行:
<%@ include file="/jsp/common/include.jsp"%>
Run Code Online (Sandbox Code Playgroud)
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>
Run Code Online (Sandbox Code Playgroud)
无论是include-prelude和include-coda没有工作.
我读到其他WebSphere用户无法启动并运行; 但是,tomcat用户能够.
它jsp-property-group是在JSP 2.0(iow Servlet 2.4)中引入的.Websphere 6.0是Servlet 2.3.
所以你有3个选择:
| 归档时间: |
|
| 查看次数: |
2118 次 |
| 最近记录: |