That is the feature of
RequestDispatcher.
By calling forward() method, you actually are telling the server to display the output using the
JSP.
You are not telling the server to send new HTTP request to the JSP.
You need to learn more about
RequestDispatcher.forward() and
response.sendRedirect() methods.