I am new to Spring MVC. I started out with a login page. So far, I am succeeded in pulling username,password from pre-existing table in my db and validating user at login. Now I want to redirect the user(Who enters wrong credentials) back to same login page with an error message.
My login page is under "web-content" (Web-Content/index.jsp) and the page I access after successful login is under "WEB-INF/views/". But whenever user enters a wrong credential in index.jsp shud b redirected to same page with an error message.
The problem is that the view resolver will resolve the request to page under("WEB-INF/views"). So how can i redirect to page under "web-content" ... Please help.
Thank you so much