随笔-6  评论-7  文章-2  trackbacks-0
网上查资料加上自己的试探,终于在我的机器上搞定了。具体方法很简单,找到tomcat conf目录下的web.xml,将这段内容:
 <servlet>
        
<servlet-name>jsp</servlet-name>
        
<servlet-class>org.apache.jasper.servlet.JspServlet</servlet-class>
        
<init-param>
            
<param-name>fork</param-name>
            
<param-value>false</param-value>
        
</init-param>
        
<init-param>
            
<param-name>xpoweredBy</param-name>
            
<param-value>false</param-value>
        
</init-param>
        
<load-on-startup>3</load-on-startup>
    
</servlet>
改为如下
<servlet>
        
<servlet-name>jsp</servlet-name>
        
<servlet-class>org.apache.jasper.servlet.JspServlet</servlet-class>
        
<init-param>
        
<param-name>compilerSourceVM</param-name>
        
<param-value>1.5</param-value>
        
</init-param>
        
<init-param>
        
<param-name>compilerTargetVM</param-name>
        
<param-value>1.5</param-value>
        
</init-param>
        
<init-param>
            
<param-name>fork</param-name>
            
<param-value>false</param-value>
        
</init-param>
        
<init-param>
          
<param-name>compiler</param-name>
          
<param-value>modern</param-value>
        
</init-param>
        
<init-param>
            
<param-name>xpoweredBy</param-name>
            
<param-value>false</param-value>
        
</init-param>
        
<load-on-startup>3</load-on-startup>
    
</servlet>
网上的资料和tomcat网站上的信息说只要加上compilerSourceVM和compilerTargetVM参数的指定就可以了,但是在我的机器上还要将compliler参数设置为modern。不知道是不是普遍现象。
posted on 2005-12-04 20:29 WebWheel 阅读(791) 评论(0)  编辑  收藏

只有注册用户登录后才能发表评论。


网站导航: