A deployment descriptor file is used by Java web applications to specify how URLs translate to servlets, which URLs require authentication, and other details. This file is called web. xml and is located in the WEB-INF/ directory of the app's WAR.
The Deployment Descriptor is a basic XML document that maps URLs to servlets. It instructs the container on how to execute servlets and JSP pages. The name of the Deployment Descriptor file in a web application is web.
The servlet package contains a number of interfaces and classes that the servlet or web container can use. These aren't tied to any particular protocol. Interfaces and classes in the javax. servlet. http package are only responsible for http requests.
RESTful is not an API, but servlets are. Servlets can be used to construct RESTful web services, but the opposite is not true. Servlets can only be executed in a servlet container, however RESTful services can also be run in a web container.
Share a personalized message with your friends.