filter or valve to trap successful login?

2006-09-11 Thread Jon Yeargers
Im working with a JNDI realm to control access to a site. I need to be able to 'trap' a successful login to any one of the pages in the site so that I can create a session bean with login information. Is it possible to tie a filter or valve to the login process and get the information *before*

Re: filter or valve to trap successful login?

2006-09-11 Thread David Delbecq
Put a filter on your application, in this filter, check if there is currently a principal, if yes, check if there is already your bean in the session. If not, create it. Then forward to the next of filter chain. As you are in a filter, you will be notified before the servelt / JSP requested by