I am having a problem with going back to a login page after a session has timed out. I have a page called MyProtectedPage that all my pages extend from and MyProtectedPage has the following method:

public void pageBeginRender(PageEvent event) {
super.pageBeginRender(event); if(getVisit()==null || !getVisit().isLoggedIn()) {
LoginPage loginPage = (LoginPage) getRequestCycle().getPage("Login");
throw new PageRedirectException(loginPage);
} }


The problem is that when I do have a session timeout I get the standard Tapestry exception page indicating an exception has occured instead of going to my login page. What exactly am I do wrong????

thank,  scott.
--

Scott F. Walter         Scott F. Walter
Principal Consultant
Vivare, Inc.

E: [EMAIL PROTECTED]
E: [EMAIL PROTECTED]
Visit scottwalter.com <http://scottwalter.com> --Point.  Click.  Explore!




--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to