jse*_*nck 3 java jboss jsp compilation
可以在应用程序部署期间或jboss启动期间编译jsp吗?通常jsp是动态编译的,但如果编译在之前完成则会很方便...
我读过它是不可能预编译jsp机智jee6 ...这就是为什么库不提供jboss 6.还有另一种方法吗?
提前致谢!
您需要修改$ server/deploy/jbossweb.sar/web.xml并让jsp servlet包含一个正检查值
   <servlet>
      <servlet-name>jsp</servlet-name>
      <servlet-class>org.apache.jasper.servlet.JspServlet</servlet-class>
      <init-param>
         <param-name>checkInterval</param-name>
         <param-value>1</param-value>
      </init-param>
查看标记上方的文档:
   <!--   checkInterval       If development is false and checkInterval is   -->
   <!--                       greater than zero, background compilations are -->
   <!--                       enabled. checkInterval is the time in seconds  -->
   <!--                       between checks to see if a JSP page needs to   -->
   <!--                       be recompiled. [0]                             -->
   <!--                                                                      -->
   <!--   modificationTestInterval                                           -->
   <!--                       Causes a JSP (and its dependent files) to not  -->
   <!--                       be checked for modification during the         -->
   <!--                       specified time interval (in seconds) from the  -->
   <!--                       last time the JSP was checked for              -->
   <!--                       modification. A value of 0 will cause the JSP  -->
   <!--                       to be checked on every access.                 -->
   <!--                       Used in development mode only. [4]             -->
| 归档时间: | 
 | 
| 查看次数: | 12498 次 | 
| 最近记录: |