I have a problem with my spring xml configuration file. When user does not have a necessary role and enters forbitten url they are redirected to page /timereport/home.do as expected, but url remains as the user entered it, it is not /timereport/home.do. I do not want to write a custom filter to do this, how can I cope with it?
The necessary lines from the configuration file are below:
<http access-denied-page="/timereport/home.do"
access-decision-manager-ref="accessDecisionManager">
<form-login login-page="/loginFor开发者_JAVA技巧m.jsp" default-target-url="/timereport/home.do" etc.
Thanks in advance!
精彩评论