In your web xml
<servlet-name>
. value is different in
<servlet>
tag and
<servlet-mapping>
tag. So server cannot map to correct servlet. You have to use same servlet-name value for both servlet and servlet-mapping tags
[
^Read oracle docs for more info]
<servlet>
<servlet-name>And</servlet-name>
<servlet-class>ServletWriteHtml</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>And</servlet-name>
<url-pattern>/Alfa</url-pattern>
</servlet-mapping>
tip: reply to the comments in reply section and not as an answer.