themaster
themaster

Reputation: 473

Calling a servlet from the URL

I have created a servlet with an endpoint as below-

@WebServlet("/Email_token_Auth")
public class Email_auth extends HttpServlet {
    private static final long serialVersionUID = 1L;

When I am hitting my url http://localhost:8080/Email_token_Auth its throwing 404 not found error.

How do we call a servlet from a url ?

Upvotes: 0

Views: 40

Answers (1)

Musa Ay
Musa Ay

Reputation: 164

Can you try like bottom. Project name may need to add

http://localhost:8080/ProjectName/Email_token_Auth

Upvotes: 1

Related Questions