I'm using JAAS to authenticate a client for a web app running on Tomcat.
I have a filter setup at that does some initialization of a user on the session at login. Nothing too overly complicated a simple is if user is not null type thing.
My understanding is JAAS will be called first, then my filter will be checked and then my JSP will be rendered
My question is, is there a way to match a url-pattern in a filter-mapping, to only run after a successful JAAS login?
<filter-mapping>
<filter-name>MyFilter</filter-name>
<url-pattern>/some/url/pattern/*</url-pattern>
</filter-mapping>
So in the above fileter-mapping what would go in the url-pattern? Or is this not possible?