关于论文英语翻译
来源:百度知道 编辑:UC知道 时间:2024/05/29 15:03:33
<welcome-file-list>
<welcome-file>index.html</welcome-file>
<welcome-file>index.htm</welcome-file>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
设定网站索引文件的优先级,当客户端的请求没有指定是访问哪一个页面文件的时候,默认首先返回 index.htm文件,其次是index.htm 文件 最后是index.jsp 文件。
如果希望默认最先返回的页面索引文件是 index.jsp则只需要将index.jsp 的位置放在第一个 welcome-file的位置上即可。
最后描述一下 tomcat服务器处理一个 http请求的全过程:
假设来自客户的请求为:
http://localhost:8080/chart/chart_index
When a user requests the http not match any of a servlet, the servlet be executed. Application procedures for dealing with a web of anonymous servlet. When a servlet Add to be prepared and compiled / web-inf/classes /, but not in / web-inf/web.xml in the definition of the time, the servlet is called, the anonymous servlet-mapping / servlet / ClassName in the form of . Traditionally, this servlet be mapped to the url "/ servlet /". When a request is a jsp pages of time, (*. jsp) will call the jsp pages of the servlet. It shows the client will request the first jsp pages compiled a servlet, and then in the implementation. This is the jsp pages Tomcat support mechanism. In fact, all the web servers jsp on the working mechanism are the same, that is, jsp will be jsp / servlet server automatically compiled as the first, and then to work the way servlet.
<welcome-file-list>
<welcome-file> index.html </ welcome-file>
<welcome-file> index.