Replace
<form method="post" action="/LoginServlet">
with
<form method="post" action="LoginServlet">
which will be automatically be translated into the-context-path/LoginServlet
. Note that the path you put into action
attribute is relative to the context path.
CLICK HERE to find out more related problems solutions.