Spring web app tutorial 6: Servlet and JSP API

How to resolve error: The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path? If you use Maven, add to pom.xml Servlet and JSP API with scope provided.

How to resolve error: The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path? If you use Maven, add to pom.xml Servlet and JSP API with scope provided.