I\'m trying to learn, how spring security works, so I\'ve downloaded some sample project and then I tried to implement that solution to my project. But when I try to login, I ge
You are trying to validate to a uri based on the current context path of the web page. the JSTL tag lib can be used to ensure you easily generate the correct urls based on the context of the application. You can do this by using a tag library if you want to get it implemented quickly. To do this you can add the jstl tag library to the top of the jsp:
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
Then you can use the following to post to the login servlet.
This ensures you alway post to
reference for jstl: http://docs.oracle.com/javaee/5/jstl/1.1/docs/tlddocs/c/url.html