Virtusa interview question

When do we need a web.xml file in a project?