然后我在原来的代码中加上了<jsp:include flush="True"></jsp:include>
但是又出现了这样的错误:
Error: 500
Location: /Example2_16.jsp
Internal Servlet Error:org.apache.jasper.compiler.ParseException: D:\tomcat\jakarta-tomcat-3.3-b1\webapps\ROOT\Example2_16.jsp(5,0) Include: Mandatory attribute page missing
                                            ~~~~~~~~~~~~~~~~~~~~~~~~~~~必须加上page属性。<jsp:include page="your_include_file" flush="True"/>

解决方案 »

  1.   

    我进行了 如下改进:
    <%@ page contentType="text/html;charset=GB2312"%>
    <html>
    <body bgcolor=red>
    <font size=2>
    <p>加载的文件如下:
    <br>
    <jsp:include page="MyFile/Hello.txt" flush="True">
    </jsp:include>
    <p>加载的图片:
    <br>
    <jsp:include page="image.html" flush="True">
    </jsp:include></body></html>
    可是错误又出现了:
    org.apache.jasper.compiler.CompileException: D:\tomcat\jakarta-tomcat-3.3-b1\webapps\ROOT\dyin.jsp(8,0) jsp:include page="..." flush="true" is the only valid combination in JSP 1.0
      

  2.   

    你用的那种语法只在jsp1.0版本中有效