I have a Java web application running on JBoss using JAAS for authentication. I would like to dynamically select the page a user logging in is shown based upon their roles as I have disjoint sets of users that shouldn't have access to the same pages.
I've tried using a Filter, but Tomcat denies access (correctly) to the requested URL before the filter has a chance to run.
Any ideas?