RE: struts2 interceptor session timeout with ajax

2016-03-30 Thread Martin Gainty
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

Re: struts2 interceptor session timeout with ajax

2016-03-30 Thread Lukasz Lenart
) { > alert('in error'); > var status1 = event.status; > > if(status1 == 403 ) { > window.location.href = "/Sample/login.action"; > } > }); > > > > > > > > > > From: Lukasz Lenart <lukaszlen...@apache.org> > Sent:

Re: struts2 interceptor session timeout with ajax

2016-03-29 Thread fea jabi
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

Re: struts2 interceptor session timeout with ajax

2016-03-11 Thread Lukasz Lenart
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

Re: struts2 interceptor session timeout with ajax

2016-03-11 Thread fea jabi
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