instead of using that I created my own custom Spring Security
SuccessHandlers and Failure Handlers that returns JSON back to the client.
 I then let the client handle the place management based on
success:true/false.  At this point I can also send credentials back in the
JSON as well.

On Tue, Dec 21, 2010 at 9:15 AM, asianCoolz <second.co...@gmail.com> wrote:

> I use gwt requestBuilder to query server result, if server-side spring
> checked user is not authenticated, it will forward to <form-login
> login-page="/gwtapplication.html#!login"       , but gwt is not
> forwarded to that page.  see below
>
>
> requestBuilder.setCallback(new RequestCallback() {
>
>            @Override
>            public void onError(final Request request, final Throwable
> exception) {
>                resultCallback.onFailure(exception);
>            }
>
>            @Override
>            public void onResponseReceived(final Request request,
>                    final Response response) {
>
>
>                if(response.getHeader("Content-
> Type").toLowerCase().equals("text/html".toLowerCase()))
>                {
>
>
>                //response.getText() is
>                /**
>                  Expires Thu, 01 Jan 1970 00:00:00 GMT
>                  Set-Cookie JSESSIONID=1emk892yva1e9;Path=/
>                  Location http://127.0.0.1:8888/gwtapplication.html#!login
>                 Content-Length 0
>                 Server Jetty(6.1.x)
>
>               **/
>
>
>                }
>
>
>            }
>        });
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com<google-web-toolkit%2bunsubscr...@googlegroups.com>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to