In the below program, when I submit the login.jsp page, I get the "org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/Bookstore/index] in DispatcherServlet with name 'appServlet' message.The index.jsp page is in WEB-INF/views folder.
If I write return "index" instead of "redirect:/index" it works fine. Also If I move the index.jsp page out of the WEB-INF/views folder and keep it inside WebContent, it works fine when written as return "index.jsp". So how to redirect to a different page which is inside WEB-INF/views folder.
the WEB-INF/spring/appServlet/servlet-context.xml is as follows :