Unable to select project for New->Servlet

Tags: , ,



I’m unable to create a new servlet because I cannot assign it a project.

Also the browse buttons do not work, at all, as in they silently fail

Am I missing something basic? I’ve been able to create, build, and run simple projects, just can’t manage to add a servlet.

Answer

Simply create a new class and make it extend HttpServlet, and map it in web.xml



Source: stackoverflow