dev@jsftemplating.java.net

Login related questions

From: Karam Singh Badesha <Karam.Badesha_at_Sun.COM>
Date: Tue, 11 Sep 2007 17:38:03 -0700

Hi,
I have implemented the login for my app and once successfully logged I
setup a session variable. Now I have have following questions:

- where do I put the if statements on all of the pages to check if the
session variable exists and have the correct value and also if true load
the page normally otherwise redirect to the login page? I have tried
putting if statements under initPage and beforeCreate events but it
doesn't work. What is the best way to handle this kind of scenario? Is
their any other way to take care of this. Any sample code I can look at?

thanks
Karam