请教一个JSP问题,out.write()输出不了内容,很郁闷。。。
<% out.println("1111"); session = request.getSession(); if(session.getAttribute("msg_loginerr")!=null) { out.println("2222"); System.out.println(session.getAttribute("msg_loginerr") + "------script11111"); %> <script type="text/javascript"> function(){ $("div#panel").show(); $("#toggle a").toggle(); } </script> <% System.out.println(session.getAttribute("msg_loginerr") + "------script22222"); } %>
out.println("1111"); session = request.getSession(); if(session.getAttribute("msg_loginerr")!=null) { out.println("2222"); System.out.println(session.getAttribute("msg_loginerr") + "------script11111"); out.write("\r\n"); out.write("\t\t<script type=\"text/javascript\">\r\n"); out.write("\t\r\n"); out.write("\t\tfunction(){\r\n"); out.write("\t\t\r\n"); out.write("\t\t\t$(\"div#panel\").show();\r\n"); out.write("\t\t\t$(\"#toggle a\").toggle();\r\n"); out.write("\t\t}\r\n"); out.write("\t\r\n"); out.write("\t\t</script>\r\n"); out.write("\t"); System.out.println(session.getAttribute("msg_loginerr") + "------script22222"); }