MoShAn480
3 Aug 2009, 3:39 PM
Hi,
I have started using the Ext.Direct with Java on the server stack. I am trying to handle the case where the user session is invalid, and based on this I would like to redirect the user to the login page.
I noticed in the documentation for Ext.Direct and Ext.RemotingProvider that both have an exception event but does not fire for invalid response objects.
Also in the Ext.direct there are the following as stated in docs:
* Ext.Direct.exceptions.TRANSPORT : 'xhr'
* Ext.Direct.exceptions.PARSE : 'parse'
* Ext.Direct.exceptions.LOGIN : 'login'
* Ext.Direct.exceptions.SERVER : 'exception'
how can I make use of these? Any help would be great!
I have started using the Ext.Direct with Java on the server stack. I am trying to handle the case where the user session is invalid, and based on this I would like to redirect the user to the login page.
I noticed in the documentation for Ext.Direct and Ext.RemotingProvider that both have an exception event but does not fire for invalid response objects.
Also in the Ext.direct there are the following as stated in docs:
* Ext.Direct.exceptions.TRANSPORT : 'xhr'
* Ext.Direct.exceptions.PARSE : 'parse'
* Ext.Direct.exceptions.LOGIN : 'login'
* Ext.Direct.exceptions.SERVER : 'exception'
how can I make use of these? Any help would be great!