I'd like to write an interceptor that will redirect
to a page when the session is expired.

I know that I can acces  to the session in the interceptor like that.

public String intercept(ActionInvocation invocation) throws Exception
        {
        Map session = invocation.getInvocationContext().getSession();
           }

but I don't know how to test the validity of the session within the 
intercept method.

the request.isRequestedSessionIdValid() upon the HttpServletRequest 
returns a boolean which
tell me if the session is valid. But I don't know how to access to the 
HttpServletRequest  within an interceptor.

If someone has an idea about that.

Meissa

L'integrite de ce message n'etant pas assuree sur internet, Natixis ne peut 
etre tenu responsable de son contenu. Toute utilisation ou diffusion non 
autorisee est interdite. Si vous n'etes pas destinataire de ce message, merci 
de le detruire et d'avertir l'expediteur.
Ensemble, faisons un geste pour l'environnement : n'imprimons nos mails que si 
necessaire

The integrity of this message cannot be guaranteed on the Internet. Natixis can 
not therefore be considered responsible for the contents. Any unauthorized use 
or dissemination is prohibited. If you are not the intended recipient of this 
message, then please delete it and notify the sender.

Reply via email to