Hi, I am new to Spring MVC and am trying to create a simple website where a user logs in and in turn is shown a dummy page. The control goes to the login page but when I submit the form the control seems to go outside the web application. What am I doing wrong?
First, why would you go with a lower version of spring, SimpleFormControllers and other controllers were deprecated from Spring 3.0 in favor of annotated controllers, your controllers should not extend any classes, use annotations, why learn the old way of doing things, start with the better ways to do. I would higly encourage you to start with annotation controllers.
Regarding, the problem, You have just handleRequest overridden, which submits both your POST and GET methods to that method.
Override showForm for get and onSubmit for POST.
I see onSubmit commented, was the screenshot you have shown us taken with the commented onSubmit method or not?
On top of spaghetti all covered in cheese, there was this tiny ad: