use <jsp:include page="include/dat.jsp"/>
if there are parameters, the common syntax is :
</jsp:include page="relativeURL" flush="true">
  <jsp:param name="parameterName"
             value="paramerterValue"/>+
</jsp:inlude>

解决方案 »

  1.   

    你把index.jsp也修改一下就行了。这是应为index.jsp没有重新编译。
      

  2.   

    include引用有兩種,
    一種是靜態引用,像你用的那種.
    這種引用如果你修改了被引用的文件,除非你刪除jakarta-tomcat-4.0\work\localhost里的所有東西,重新啟動Tomcat,你在頁面上是看不到的.
    (這種引用可以引用文本文件等其他非jsp文件)
    另一種是動態引用.格式是<jsp:include page="**.jsp" flush="true"/>.你修改了被引用文件,你在頁面能看到,只是這種引用的文件必須是Jsp文件.