Servlet welcome file list tag gets define inside web.xml deployment descriptor. This tag is responsible to load a file as soon as server starts up running.
Creation of Dynamic Web Project by default generates below web.xml having default content as mentioned in below screenshot.
Below is the sample webl.xml file having <welcome-file-list> tag:
<welcome-file-list> tag contains multiple <welcome-file> tags under which we can provide file with below extensions:
localhost:<port_number>/project_name will by default load index.jsp file as soon as server starts.
e.g. http://localhost:8082/ServletDemo/
Specialist Master (Architect) with a passion for cutting-edge technologies like AEM (Adobe Experience Manager) and a proven track record of delivering high-quality software solutions.
📝 Blogs
javadoubts.com © All rights reserved