Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Conditional forwarding in JSF  RSS feed

 
Haris Karameh
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am sorry if this is trivial question, I am just starting with JSF.
I have a session bean called userData which is responsible for authentication with legacy system and it works ok. There is method named isAuthenticated() which returns true is user is permitted an access to a page.
Now, I do not want to change a way user is authenticated. I just want a JSF page to redirect the user to "/Login" if the user is not authenticated(e.g accessing "/ListContent.jsf" before accessing "/Logon". What piece of code I should include to "protected" pages.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!