I am using GWT and RPC in my app. after session expires when I do a RPC call, because of my login-filter the request redirect to login.jsp, but my problem is client doen\'t
You will get com.google.gwt.user.client.rpc.InvocationException when service method is not called because of session expired. You can check that in onFailure method and simply redirect user to login page.
public void onFailure(Throwable caught) {
if (caught instanceof InvocationException) {
SC.warn("Your session has expired, Please login again.",
value -> com.google.gwt.user.client.Window.Location.replace("/login.jsp"));
}else{...
}
}