Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/http/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Web applications 在Tomcat6中,哪个优先:index.html还是index.jsp?_Web Applications_Tomcat6 - Fatal编程技术网

Web applications 在Tomcat6中,哪个优先:index.html还是index.jsp?

Web applications 在Tomcat6中,哪个优先:index.html还是index.jsp?,web-applications,tomcat6,Web Applications,Tomcat6,我们的web应用程序包含index.html和index.jsp,我们使用ApacheTomcat6。当一个请求的路径(例如)到达tomcat时,将为哪个请求提供服务 这是index.html还是index.jsp 它是可配置的吗?index.html将优先考虑,但您可以在web.xml中的欢迎文件列表下更改它 <welcome-file-list> <welcome-file>index.jsp</welcome-file> <welcom

我们的web应用程序包含index.html和index.jsp,我们使用ApacheTomcat6。当一个请求的路径(例如)到达tomcat时,将为哪个请求提供服务

这是index.html还是index.jsp


它是可配置的吗?

index.html
将优先考虑,但您可以在
web.xml
中的
欢迎文件列表下更改它

<welcome-file-list>
   <welcome-file>index.jsp</welcome-file>
   <welcome-file>index.html</welcome-file>
   <welcome-file>index.htm</welcome-file>
</welcome-file-list>

index.jsp
index.html
index.htm

在部分请求的情况下,上面的配置将尝试
index.jsp
,然后
index.html
,然后
index.htm
index.html
将被优先考虑,但您可以在
web.xml
中的
欢迎文件列表下更改此设置

<welcome-file-list>
   <welcome-file>index.jsp</welcome-file>
   <welcome-file>index.html</welcome-file>
   <welcome-file>index.htm</welcome-file>
</welcome-file-list>

index.jsp
index.html
index.htm
在部分请求的情况下,上述配置将尝试
index.jsp
,然后是
index.html
,然后是
index.htm