Have you have created Java Project in Eclipse and want to convert it to
Dynamic Web Project? You can do it by following below steps:
Open your Java Project
Right Click on
Project -> Properties
Click on “
Project Facets” from left menu. Click on
Convert to faceted form...
Click Dynamic Web Project and Java checkbox.
Click Apply and Ok.
Your project should be converted to
Dynamic Web Project now.
If you don’t see
web.xml file under WEB-INF folder then follow these steps: https://crunchify.com/eclipse-missing-web-xml-file-how-can-i-create-web-xml-in-eclipse/