Handling Security Exceptions
To prevent users from receiving the default error page in response to a security error, it's recommended that pages.xml
is configured to redirect security errors to a more "pretty" page. The two main types of exceptions thrown by the security API are:
Most web applications require even more sophisticated handling of login redirection, so Seam includes some special functionality for handling this problem.