<%  for (int i=0 ;i<=100;i++) {
这是测试用例<Br>
} %>
 
这个是不行的,必须是这样
<%  for (int i=0 ;i<=100;i++) {
out.println("这是测试用例"+"<Br>");
} %>体会一下.和你要区别的方法实际是一个道理

解决方案 »

  1.   

    javascript 我也不熟,Sorry !
      

  2.   

    2、没区别
    1、
    <script language="JavaScript">
    var when =new Date();
    document.write(when.getYear()+"年");
    document.write((when.getMonth()+1)+"月");
    document.write(when.getDate()+"日");
    document.write(when.getHours()+"小时");
    document.write(when.getMinutes()+"f分");  -------(+改为+)
    document.write(when.getSeconds()+"秒");
    </script>
    不要这么粗心好不好?
      

  3.   

    document.write(when.getMinutes()+"f分");
    你仔细看 你的+写错了            ~~
    改成+就好了
      

  4.   

    叫人别粗心,我自己却这么粗心,呵呵,有区别的,
    seaman0916(沙漠孤鹰) 说的对
      

  5.   

    只要记住,jsp代码必须放在<%  %>里就行了。所以
    <%  for (int i=0 ;i<=100;i++) {%> 这是测试用例<Br> <%} %>

    <%  for (int i=0 ;i<=100;i++) { 这是测试用例<Br> } %>
    的区别就自然很清楚了嘛。
    后面一个有错是因为“这是测试用例<Br>”不是jsp代码。