Tomcat6.0里更改==显示jsp页面目录

在Tomcat6.0\conf\web.xml
找到以下代码
<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>false</param-value>
        </init-param>
        <load-on-startup>1</load-on-startup>
    </servlet>

更改为以下内容:修改部分用颜色标出
<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>[color=red]true[/color]</param-value>
        </init-param>
        <load-on-startup>1</load-on-startup>
    </servlet>





只是把里边的false 更改为true

你可能感兴趣的:(java,apache,Web,xml,jsp)