Context:
- Learning Servlets and JSP
- Eclipse Version: Mars.2 Release (4.5.2)
- Tomcat Version: 8.0.33
- Java 8
Question:
Is the web.xml purely ceremonial? It doesn't appear to be useful in any way, although I am early in the learning process. I thought it was used for default url mapping but I just put an index.html file in the project and it apparently automatically maps it for me! I also thought it was for defining the servlet but Eclipse automatically uses the @WebServlet annotation which apparently replaces it? Am I being naïve or is it not very useful?