How implement a login filter in JSF?

You need to implement the javax.servlet. Filter class, do the desired job in doFilter() method and map it on an URL pattern covering the restricted pages user maybe? Inside the doFilter() you should check the presence of the logged-in user in the session somehow.

Assuming that you've a JSF SessionScoped ManagedBean(name="auth") class Authorization for this, then you could get it as a session attribute by its managed bean name.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions