Spring Security logged user
I'm using Spring Security and I need to r开发者_运维技巧edirect to another page each time a logged user accesses a particular page.
I tried testing SPRING_SECURITY_LAST_USERNAME variable and using response.sendRedirect("newpage.htm") to redirect, but this does not ensure that the user is logged in. how could i do this?
精彩评论