Classes and interfaces from two packages are used by servlets: javax. servlet and javax. servlet. http.