Issue
I'm trying to create a servlet in eclipse but when I create the name of the Servlet the finish and the next button don't show up.
I searched a lot in slack and I verified that:
Solution
Ensure the Dynamic Web Module facet is enabled for your project and try writing the package name when creating a servlet.
By the way, you don't need a wizard to create a servlet. Just create a class that extends HttpServlet
and annotate it with @WebServlet
:
@WebServlet("/hello-world")
public class HelloWorldServlet extends HttpServlet {
...
}
Then override the doXXX(HttpServletRequest, HttpServletResponse)
methods to handle the requests.
Answered By - cassiomolin
Answer Checked By - David Marino (JavaFixing Volunteer)