You have two options - either you start with a Controller (java class, which you map from a certain relative url path to your Controller,
or you call a certain jsp, which gets rendered, and when the user hits a submit button, you forward the request to a Controller like in this case
your LoginController. You mixed it up, I don't feel you really understand how the incoming request is handled to and from the server -
Try to understand this first, before you try setting up your application.