我在wsad下面调试的结果是hoho呀

解决方案 »

  1.   

    难道说resin和weblogic等有设计漏洞?
    还是别的?
      

  2.   

    我用iPlanet试过,结果是
    hoho.
    正常..
    试试
    <%
    out.println("hoho");
    out.flush();
    out.close();
    out.println("haha");
    %>
      

  3.   

    不会有这样的问题吧!
    我在Tomcat下面也是正常的啊!不应该还有输出的啊!看看那句话是不是写错了?
      

  4.   

    to gzwrj(我无知,所以我有智慧.)
    我试了你的方法,结果还是那个样子.不好意思to sook_l(sook)
    绝对没有写错,我就写了这么三句,怎么可能写错?还有我用的是j2sdk1.4
    有谁也用resin试过了吗?
    谢谢各位!
      

  5.   

    只能说明resin没有及时关闭out,呵呵。你延时一下再out.println(xxx):  Thread.sleep(3000);
      

  6.   

    to hccpro(hcc) 
    哈哈,试验了一下,结果还是老样子
    看来明天我要改装别的服务器了
      

  7.   

    试一下用"return"
    在weblogic上好像是可以的
      

  8.   

    我的jrun4
    test.jsp
    <%
    out.print("hoho");
    out.close();
    out.print("haha");
    %>
    输出结果:
    hoho
    500 null:0 JspWriter closed
    null:0 JspWriter closed 为什么?
      

  9.   

    <%
    out.print("hoho");
    out.close();
    return;
    out.print("haha");
    %>
      

  10.   

    <%
    out.print("hoho");
    out.close();
    return;
    out.print("haha");
    %>得到500 Translator.CompilationFailedExceptionCompiler errors:
    Found 1 semantic error compiling "D:/JRun4/servers/default/default-ear/default-war/WEB-INF/jsp/jrun__test2ejsp9.java":51. out.print("haha");
    <---------------->
    *** Error: This statement is unreachable.Translator.CompilationFailedExceptionCompiler errors:
    Found 1 semantic error compiling "D:/JRun4/servers/default/default-ear/default-war/WEB-INF/jsp/jrun__test2ejsp9.java":51. out.print("haha");
    <---------------->
    *** Error: This statement is unreachable.
      

  11.   

    51. out.print("haha");
    <---------------->
    *** Error: This statement is unreachable.永远不能被执行的语句
    ^_^,你要结束执行总得有个条件吧?
    <%
    int m=0;
    out.print("hoho");
    out.close();
    m++;m--;m+=100;
    if(m>0) return;
    out.print("haha");
    %>
      

  12.   

    <%
    out.println("hoho");
    if(true)
    return;
    out.println("haha");
    %>
    完全正确,给分!^V^