Most people set up a Spring MVC 'catch all' exception handler that
will automatically forward the end-user to a different page - e.g. an
'unauthorized' view.  Look at the Spring @ExceptionHandler annotation
or the ExceptionHandlerResolver:

http://stackoverflow.com/questions/2538031/spring-mvc-best-practice-handling-unrecoverable-exceptions-in-controller
and
http://www.captaindebug.com/2012/02/spring-3-mvc-exception-handlers.html

HTH,

-- 
Les Hazlewood
CTO, Katasoft | http://www.katasoft.com | 888.391.5282
twitter: @lhazlewood | http://twitter.com/lhazlewood
katasoft blog: http://www.katasoft.com/blogs/lhazlewood
personal blog: http://leshazlewood.com

Reply via email to