Rudolf Baloun <RudolfBaloun <at> atron.de> writes:

> protected void handleStaleSessionException(IRequestCycle cycle, 
> StaleSessionException exception)
>     {
>         log.info("EnterHANDLESTALESESSIONEXCEPTION!!");      
>         logout();
>         final HttpSession session = cycle.getRequestContext().getSession();
>         log.info("Create New Session!");
>         cycle.getRequestContext().createSession();        
>         String newURL = "http://localhost:8080/Test/app";
>         cycle.sendRedirect(newURL);        
>         log.info("Exit HANDLESTALESESSIONEXCEPTION!!");
>     }
> 
> I got a a RedirectException at line "cycle.sendRedirect(newURL);".
> Whats wrong?

Try:
    getInfrastructure().getRequest().forward(newURL);
instead of:
    cycle.sendRedirect(newURL);

--
Author of a book for learning Tapestry (http://www.agileskills2.org/EWDT)


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

Reply via email to