How to handle session expired exception in Spring MVC-Spring Security app for GWT RPC calls
I have Spring MVC application where security is handled by Spring Security. UI is built using GWT which gets the data from server using RPC approach. I need to handle on UI the situation when session is expired: For example RPC AsyncCallback can get SessionExpiredException type of exception and popup the window with message like "You session is expired, please click the refresh link" or something. Did someone deal with such problem? Thanks. I suppose that for processing of incoming GWT call you use some Spring MVC controller or some servlet. It can have following logic try{ // decode payload