The gwt client cannot interpret the redirect or invalid response
(hence invocation exception).  I do it this way...
I use GWT server library so I can implement the service as POJO in
Spring container and published as gwt service.  I cannot use servlet
filter  bcoz it cannot handle the marshaling of the response.  It
should be behind the GWT rpc servlet. So I intercept the call to POJO
service using Spring aop and check the session there, and throw
session expired exception. The "SessionExpiredException" can also
include the URL to be redirected. This can be marshaled and sent back
to the gwt client.

On the client side, you can catch the SessionExpiredException in the
AsyncCallback handler and call the Javascript to do the redirect.





--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to