Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

JSF 2.0 redirect on page load if session bean is set

843844Aug 27 2010 — edited Jan 11 2011
Hi,
I've simple loginform.jsf page that displays login form. But when the user goes to loginform.jsf (type it in web browser, not navigation rule) I want to check if session bean "isAuthorized" is set and if it is I want to redirect user to index.jsf without displaying login form.
I know how to check session bean but don't know how to redirect in JSF 2.0 EL. Any ideas? In JSP it was quite simple, but can't find something about JSF2.0.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 8 2011
Added on Aug 27 2010
5 comments
2,073 views