MG>pls see below
> From: lukaszlen...@apache.org
> Date: Wed, 30 Mar 2016 07:59:28 +0200
> Subject: Re: struts2 interceptor session timeout with ajax
> To: user@struts.apache.org
>
> I think you must use `onSuccessTopics` instead of `onErrorTopics` -
> returning 403 d
) {
> alert('in error');
> var status1 = event.status;
>
> if(status1 == 403 ) {
> window.location.href = "/Sample/login.action";
> }
> });
>
>
>
>
>
>
>
>
>
> From: Lukasz Lenart <lukaszlen...@apache.org>
> Sent:
che.org>
Sent: Friday, March 11, 2016 2:21 PM
To: Struts Users Mailing List
Subject: Re: struts2 interceptor session timeout with ajax
It won't work that way, when using Ajax you must use Ajax to redirect
to a login page. You can use something like this
http://cypressnorth.com/programming/global-aja
It won't work that way, when using Ajax you must use Ajax to redirect
to a login page. You can use something like this
http://cypressnorth.com/programming/global-ajax-error-handling-with-jquery/
so your interceptor must return 403 status code (it can return also an
url to login page to redirect
Need help with this please.
From: fea jabi
Sent: Wednesday, March 9, 2016 10:51 AM
To: user@struts.apache.org
Subject: struts2 interceptor session timeout with ajax
Have jquery tabbed panel in a jsp page which has a button to Save the
5 matches
Mail list logo