I found such solution:

1) split long text into array Arr of shorter strings
2) go through for loop of Arr and send Arr[i] texts with index i as
parameter
3) store into database fragmets of text with sequenseNo = i;
4) when you need to get all text get all text from sequenced
fragments.

Still don't know is it the best solution..


On 27 Rugs, 20:23, Ben <benzhe...@gmail.com> wrote:
> Is it possible to move this into body instead of put it in parameter?
> I think that is a good way to go.
>
> On Sep 26, 12:57 am, Hlunboi <hlungu...@gmail.com> wrote:
>
> > Hi,
> > I have similar requirement. Anyone who implement this?
>
> > Regards
> > Hlun
>
> > On Thu, Sep 24, 2009 at 5:36 PM, Gintare Ragaisiene <
>
> > gintare.ragaisi...@gmail.com> wrote:
>
> > > Hello,
>
> > >  I'm developing GWT UI that talks with my server via JSON. I do
> > > access of service by passing url like this :
>
> > >http://localhost:8080/crmsfa/control/saveEmailViaJson?message=message...
>
> > > to function:
>
> > >    public void callJsonService(String url){
> > >        url = URL.encode(url) + "&callback=";
> > >        System.out.println("url = "+url);
> > >        singleton.getJson(this.jsonRequestId++, url, singleton);
> > >    }
>
> > >    /**
> > >   * Make call to remote server.
> > >   */
> > >  private native void getJson(int requestId, String url,
> > > AccessRemoteJsonService handler) /*-{
> > >        var callback = "callback" + requestId;
> > >        var script = document.createElement("script");
> > >        script.setAttribute("src", url+callback);
> > >        script.setAttribute("type", "text/
> > > javascript");
>
> > >        window[callback] = function(jsonObj) {
>
> > > handl...@org.opentaps.gwt.crmsfa.mailbox.client.form.json.accessremotejsonservice
> > > ::handleJsonResponse
> > > (Lcom/google/gwt/core/client/JavaScriptObject;)(jsonObj);
> > >        window[callback + "done"] = true;
> > >        }
>
> > >        // [4] JSON download has 1-second timeout.
> > >        setTimeout(function() {
> > >        if (!window[callback + "done"]) {
>
> > > handl...@org.opentaps.gwt.crmsfa.mailbox.client.form.json.accessremotejsonservice
> > > ::handleJsonResponse
> > > (Lcom/google/gwt/core/client/JavaScriptObject;)(null);
> > >        }
>
> > >        // [5] Cleanup. Remove script and callback elements.
> > >        document.body.removeChild(script);
> > >        delete window[callback];
> > >        delete window[callback + "done"];
> > >        }, 3000);
>
> > >        // [6] Attach the script element to the document body.
> > >        document.body.appendChild
> > > (script);
> > >        }-*/;
>
> > > I did this by following tutorial in
> > >http://code.google.com/intl/lt/webtoolkit/tutorials/1.6/Xsite.html
> > > .
>
> > > The question is, how to pass a really long parameter string message1
> > > to service? It seems, that parameter string of 5000 chars is too log
> > > to fit in url.
>
> > > Thanks,
> > > Gintare
--~--~---------~--~----~------------~-------~--~----~
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-toolkit@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