One thought on “jsp小技巧集锦”

  1. <%@ include file="/navigation.jsp" %> 会把navigation.jsp编译进当前页面,当navigation.jsp改变,在Tomcat5.0中会重新编译当前jsp文件;

    <jsp:include page="/test.do?id=1" flush="true" />(老的JSP 1.1 规范)

    <jsp:include page="/test.do?id=1" />(新的JSP 1.2 及更高版本规范)包含 test.do?id=1的页面响应结果,当test.do?id=1的页面内容改变,不会重新编译当前jsp文件;

Comments are closed.