(100分)关于out.close(); 我在wsad下面调试的结果是hoho呀 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 难道说resin和weblogic等有设计漏洞?还是别的? 我用iPlanet试过,结果是hoho.正常..试试<%out.println("hoho");out.flush();out.close();out.println("haha");%> 不会有这样的问题吧!我在Tomcat下面也是正常的啊!不应该还有输出的啊!看看那句话是不是写错了? to gzwrj(我无知,所以我有智慧.)我试了你的方法,结果还是那个样子.不好意思to sook_l(sook)绝对没有写错,我就写了这么三句,怎么可能写错?还有我用的是j2sdk1.4有谁也用resin试过了吗?谢谢各位! 只能说明resin没有及时关闭out,呵呵。你延时一下再out.println(xxx): Thread.sleep(3000); to hccpro(hcc) 哈哈,试验了一下,结果还是老样子看来明天我要改装别的服务器了 试一下用"return"在weblogic上好像是可以的 我的jrun4test.jsp<%out.print("hoho");out.close();out.print("haha");%>输出结果:hoho500 null:0 JspWriter closednull:0 JspWriter closed 为什么? <%out.print("hoho");out.close();return;out.print("haha");%> <%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. 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");%> <%out.println("hoho");if(true)return;out.println("haha");%>完全正确,给分!^V^ 谁知道如何取消apache james的对用户表和inbox加密 汉诺塔问题 在线人员统计问题修改 有关附件下载程序的疑问 TOMCAT5.5的连接池怎么配置的?无论如何请帮忙~~ 一个未知的疑问 超难的字符串处理问题 100分大讨论:Servlet + var 模式 ! Spring + ehcache 的疑问 关于form标签中type属性的问题 想要得到某个表都有哪些属性? 有分给! 100求applet和servlet通讯串行化解决方法!!!
还是别的?
hoho.
正常..
试试
<%
out.println("hoho");
out.flush();
out.close();
out.println("haha");
%>
我在Tomcat下面也是正常的啊!不应该还有输出的啊!看看那句话是不是写错了?
我试了你的方法,结果还是那个样子.不好意思to sook_l(sook)
绝对没有写错,我就写了这么三句,怎么可能写错?还有我用的是j2sdk1.4
有谁也用resin试过了吗?
谢谢各位!
哈哈,试验了一下,结果还是老样子
看来明天我要改装别的服务器了
在weblogic上好像是可以的
test.jsp
<%
out.print("hoho");
out.close();
out.print("haha");
%>
输出结果:
hoho
500 null:0 JspWriter closed
null:0 JspWriter closed 为什么?
out.print("hoho");
out.close();
return;
out.print("haha");
%>
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.
<---------------->
*** Error: This statement is unreachable.永远不能被执行的语句
^_^,你要结束执行总得有个条件吧?
<%
int m=0;
out.print("hoho");
out.close();
m++;m--;m+=100;
if(m>0) return;
out.print("haha");
%>
out.println("hoho");
if(true)
return;
out.println("haha");
%>
完全正确,给分!^V^