Hello, I need your help, my first project on this topic, and there were difficulties. Essence, installed jre1.8.0_66, installed apache v9, installed eclipse, created the Dynamic Web Project project, added a jar with servlet-api-3.1.0 to the classpath for the project, which was required to be imported by the servlet authorization.java, automatically created after it was created, pkm-> new-> Servlet, the errors went away, then I created a jsp page (login.jsp) on which there is the simplest form of sending login and password:
login.jsp
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>Авторизация</title> </head> <body> <form action="authorization" method="get"> Пользователь: <input name="login"> Пароль: <input nam="password"> <input type="submit"> </form> </body> </html> as in video tutorials on the Internet, I made a servlet, which I added an annotation, which will be available to access the servlet class and use the doGet method:
authorization.java
package servlet; import java.io.IOException; import javax.servlet.ServletException; import javax.servlet.annotation.WebServlet; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; @WebServlet("/authorization") public class authorization extends HttpServlet { private static final long serialVersionUID = 1L; public authorization() { super(); } protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { System.out.println("doGet"); } } but, when sending data (by clicking on submit form), my servlet does not find it 
project structure:
I watched how this is done here: https://www.youtube.com/watch?v=l9EYJnsJWBc&list=PLwcDaxeEINad0vuk7vVxlWLrVI-Y5UKH&index=6
but it doesn’t work out like his, it doesn’t work, can you tell me where I could slip up, what am I doing wrong? when you consider that you want to do this through annotations, as there, without using mappings and stuff in web.xml, since because without him he works
web.xml content
<?xml version="1.0" encoding="UTF-8"?> <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://xmlns.jcp.org/xml/ns/javaee" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd" id="registry" version="3.1"> <display-name>registry</display-name> <welcome-file-list> <welcome-file>index.html</welcome-file> <welcome-file>index.htm</welcome-file> <welcome-file>index.jsp</welcome-file> <welcome-file>default.html</welcome-file> <welcome-file>default.htm</welcome-file> <welcome-file>default.jsp</welcome-file> </welcome-file-list> </web-app> 