0

In my servlet, the path define like this:

@WebServlet("/checklogin")

from jsp i call this servlet by

<form id="login-form" name="login" action="checklogin" method="post">

deploy to localhost, it running perfect, but from a real server, it keep saying 404 file not found error.

file structures:

           ---->index.jsp
           ---->admin.jsp
project1   ---->WEB-INF -- > classes ---> project1 ----> checklogin.class
           ---->META-INF
Farvardin
  • 5,336
  • 5
  • 33
  • 54
atom2ueki
  • 837
  • 4
  • 15
  • 32

1 Answers1

1

add a / before ref on jsp:

<form id="login-form" name="login" action="/checklogin" method="post">
Farvardin
  • 5,336
  • 5
  • 33
  • 54