Maybe I am missing something but I read the FAQ's on securing controller methods and I implemented the solution, however my annotation is not working on SimpleFormController types it is only working on annotated ones. How would I wire this to work for both types of controllers (old and new).
servlet.xml
Works:Code:<sec:global-method-security pre-post-annotations="enabled"> <sec:expression-handler ref="expressionHandler"/> </sec:global-method-security>
Doesn't Work (SimpleFormController)Code:@RequestMapping(method=RequestMethod.GET) @PreAuthorize("hasAuthority('ROLE_BOGUS')") public void form(HttpSession session, Model model) {
Thanks,Code:@PreAuthorize("hasAuthority('ROLE_BOGUS')") protected Object formBackingObject(HttpServletRequest request)
Keith


Reply With Quote