Today we are going to learn about solving the error "HTTP Status 404 - Servlet as is not available"
The first thing here to check is web.xml file where you have to specify the servlet-name and servlet-mapping attributes like below ex:servletname:colorservlet
Quote:<servlet>
<servlet-name>colorservlet</servlet-name> <servlet-class>colorservlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>colorservlet</servlet-name> <url-pattern>/colorservlet</url-pattern>
</servlet-mapping>
Finally check the form attribute action as action="colorservlet"
now you can run your program.
Happy coding