I created one java web project with the name first-web-application. then I created one servlet having doGet method.
@WebServlet(urlPatterns = "/login.do")
public class LoginServlet extends HttpServlet {
    @Override
    protected void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException {
        PrintWriter out = response.getWriter();
    ------------------
    -----------------
}
}
When I am running and accessing this application it is coming
http://localhost:8080/first-web-application/login.do
But the video I am following is not using application name. output is simply coming by using
http://localhost:8080/login.do
If I removed application name it gives 404 error. I mean how can we use or remove application name from URL.
Sorry to ask such basic question but I could not understand the same
 
    