> When one get the message "The HTTP session has timed
> out
> " how is it possible to redirect the user on
> particular page, say a Login page ?
> The message say to use "onSessionTimeout() method in
> the module servlet" but I do not see How to redirect
> from there ?
>
You forward to a ViewBean just like you would in any event handler. They key is that then you will generally want to throw a CompleteRequestException to stop processing after forwarding.
public void onSessionTimeout(RequestContext context)
{
ViewBean viewBean =
context.getRequest().getViewBeanManager().getViewBean(MyViewBean.class);
viewBean.forwardTo(context);
throw new CompleteRequestException();
}
Todd