A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
JSF Login Solution
Luciano A. Pozzo
Joined: Jun 20, 2005
Feb 24, 2006 17:30:00
What's the best approach to authentication and authorization of the users on
I'm using Struts, so I cannot find the solution, because I was used to set the login object on the session and verify on Action... and with JSF I can't!
Joined: May 29, 2003
Feb 24, 2006 21:05:00
Do the same with phaseListener. Register your phaseListener and check the login information on the Before Render Response phase. If the session bean that holds the user information is not initialized, redirect the page flow to the login page.
If you still miss the Struts way to go, it is an article about it:
[ February 24, 2006: Message edited by: Sergey Smirnov ]
Joined: Jun 25, 2001
Feb 27, 2006 08:53:00
Alternatively, you can use container-based authentication and define a login form in your web.xml.
The downside to this in JSF is that you can't set up lots of clever URL-based security rules, since JSF doesn't have as many distinct URLs as systems like Struts do.
Customer surveys are for companies who didn't pay proper attention to begin with.
I agree. Here's the link:
subject: JSF Login Solution
JSF Login problem
for part 2 JSF or Struts or Both
Evaluating 2 expressions in JSF using JSTL if tag
login user at most once ?
How to prevent session timeout? How to keep user logged in?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013