不是jsp的问题,IE或系统问题!
就像我P4 1。7  512M 起个JB9 要1分多钟那!我也不知道为什么,是不是MS对JVM的支持越来越差了,请高手指点!谢谢!

解决方案 »

  1.   

    用war包的形式发布,应该会快点(没经测试,只是感觉)。
      

  2.   

    可以用预编译在路径栏中输入
    sourcepage.jsp?jsp_precompile = "true"
    sourcepage.jsp?jsp_precompile = "false"
    sourcepage.jsp?jsp_precompile 不过这样很烦可以用一下这个类(摘自<JSP编程指南 2nd>第四章
    package com.wrox.projsp.ch03.util;import java.io.File;
    import java.io.IOException;
    import java.net.URL;public class Precompile {  public static void main(String[] args) {    String pathname = args[0];
        String queryString = "?jsp_precompile";
        String urlBase = "/chapter04/jsp/";    try {
          File dir = new File(pathname);
          if (!dir.exists()) {
            throw new IOException("pathname " + pathname + " not found");
          } 
          File[] files = dir.listFiles();
          for (int i = 0; i < files.length; i++) {
            String jspFile = files[i].getName();
            if (jspFile.endsWith(".jsp")) {
              System.out.println("working on " + files[i].getName());
              try {
                URL url = new URL("http", "127.0.0.1", 8080, 
                                  urlBase + jspFile + queryString);
                System.out.println("compiling " + jspFile + " using " + urlBase 
                                   + jspFile + queryString);
                url.getContent();
              } catch (Exception e) {            // add error handling
              } 
            } 
          } 
        } catch (Exception e) {
          System.out.println("exception raised:" + e);
        } 
      } }注意修改一下
    String urlBase = "/chapter04/jsp/";
    改为你的路径就行,能够编译"/chapter04/jsp/"下所有的jsp
    其实它就是把
    http://localhost:8080/myapp(可以是其他的名,也可还有路径)/
    下的所有jsp文件在系统中找到然后
    try {
                URL url = new URL("http", "127.0.0.1", 8080, 
                                  urlBase + jspFile + queryString);
                System.out.println("compiling " + jspFile + " using " + urlBase 
                                   + jspFile + queryString);
                url.getContent();
              } 
    好像是这样的,没有仔细研究过.
    不过如果不是特别慢,就没必要用这个.