✔ SERVLET CHAPTERS:-
1. Servlet Arctitecture Overview
2. Life cycle of Servlet
3. Servlet Interface
4. Generic Servlet Class
5. Http Servlet Class
6. Deployment Descriptor Webxml
7. Welcome File List In Webxml
8. Load On Startup in Webxml
9. Request Dispatcher Interface
10. Sendre Direct In Servlet
11. Servlet init Parameters
12. Servlet context Parameters
13. Servlet Hello World Example
14. Session Management Cookies
15. Cookie in Servlet
16. Hidden Field In Servlet
17. URL rewriting In Servlet
18. Http session In Servlet
19. Servlet Filter In Java
20. Filter Config Interface
1. Servlet Arctitecture Overview
2. Life cycle of Servlet
3. Servlet Interface
4. Generic Servlet Class
5. Http Servlet Class
6. Deployment Descriptor Webxml
7. Welcome File List In Webxml
8. Load On Startup in Webxml
9. Request Dispatcher Interface
10. Sendre Direct In Servlet
11. Servlet init Parameters
12. Servlet context Parameters
13. Servlet Hello World Example
14. Session Management Cookies
15. Cookie in Servlet
16. Hidden Field In Servlet
17. URL rewriting In Servlet
18. Http session In Servlet
19. Servlet Filter In Java
20. Filter Config Interface
Deployment Descripter webxml: Previous Next: load on Startup web.xml
welcome-file-list in web.xml
welcome-file-list:
The welcome-file-list attribute of web.xml file is used to define the list of welcome files.
Sample code of welcome-file-list attribute in web.xml:
How it works:
First web server looks for welcome-file-list if it exist then it looks for file defined in first welcome-file. If this file exists then control is transferred to this file otherwise web server will look at the next welcome file and so on.
If the welcome-file-list is not exists or files defined in welcome-file-list are not exists then server will looks at the default welcome files in following order index.html, index.htm, index.jsp, default.html, default.htm and default.jsp.
Default welcome file list:
Example of welcome-file-list:
web.xml
welcome.html