What is the purpose of <welcome-file-list> tag in web.xml? Why we can add more than one welcome file inside the tag? I tried that it will automatically redirect to /jsp/index.jsp when type the domain + webapp name in url address, if /jsp/index.jsp in <welcome-file> tag. But why it allows multiple welcome files? (It can redirect to different welcome file?)
Thanks in advance!
� The deployment descriptor lists the following welcome files.
� The static content in the WAR is as follows
� A request URI of /foo will be redirected to a URI of /foo/.
� A request URI of /foo/ will be returned as /foo/index.html.
� A request URI of /catalog will be redirected to a URI of /catalog/.
� A request URI of /catalog/ will be returned as /catalog/default.jsp.
� A request URI of /catalog/index.html will cause a 404 not found
� A request URI of /catalog/products will be redirected to a URI of /
� A request URI of /catalog/products/ will be passed to the �default� servlet, if any. If no �default� servlet is mapped, the request may cause a 404 not Web Application Environment 77 found, may cause a directory listing including shop.jsp and register.jsp, or may cause other behavior defined by the container. See Section SRV.11.2, �Specification of Mappings� for the definition of �default� servlet.