Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    SmartGWT to follow a 302 redirect

    Hello,

    I would like to know if it is possible to follow a http 302 redirect from a servlet, ie.:

    Code:
    //servlet
    response.sendRedirect("http://some_external_site");
    (I ask this, because I want to build an Google Drive app, based on SmartGWT. This means redirecting now and then to grant access to documents etc. Alternatively I have to rewrite their example code to send auth urls down to the client, and redirect from there, but that would mean a bit more work.)

    I call my servlet using an RPCRequest:
    Code:
    RPCRequest req = new RPCRequest();
    ...
    RPCManager.sendRequest(req, myCallback);
    I am looking for a general direction to go in this matter.

    TIA.
Working...
X