Servlet welcome file list

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:

  • index.html
  • index.htm
  • index.jsp

localhost:<port_number>/project_name will by default load index.jsp file as soon as server starts.
e.g. http://localhost:8082/ServletDemo/

Imran Khan

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.

  • Languages: Java, Python
  • Frameworks: J2EE, Spring, Struts 2.0, Hibernate
  • Web Technologies: React, HTML, CSS
  • Analytics: Adobe Analytics
  • Tools & Technologies: IntelliJ, JIRA

🌐 LinkedIn

📝 Blogs

📧 Imran Khan