tomcat方位目录显示文件列表

<servlet>   
    <servlet-name>default</servlet-name>  
    <servlet-class>org.apache.catalina.servlets.DefaultServlet</servlet-class>  
    <init-param>  
        <param-name>debug</param-name>  
        <param-value>0</param-value>  
    </init-param>  
    <init-param>  
        <param-name>listings</param-name>  
        <param-value>true</param-value>  
    </init-param>  
    <load-on-startup>1</load-on-startup>  
</servlet>
 

如果要显示jsp列表,可在conf\web.xml里,把listings的值设置成true即可

你可能感兴趣的:(tomcat)