Best way to redirect to login page
Was wondering what the best way would be to redirect to the login page if a user tried to jump to one of my pages further along in the page navigation without first logging in (i.e. just typed the url in, or loaded a bookmark)?
With Spring I would simply setup an "Interceptor" which checked for the existence of a session object which was set by the login controller and it would redirect to the login page if that object doesn't exist.
Is there an easy way to do this in JSC+JSF? Currently I have to copy/paste code to my render methods on each page to do the check. The only way to avoid this would be to subclass AbstractPageBean and place the code in that subclass, but then I would have to remember to change my extends clause for every single page I add to a flow, which is no better really than having to add the 3 lines of code I need to each page.
Thanks,
Craig.

