Oops, of course the HOSTED_MODE_URL should be somthing like this: *String HOSTED_MODE_URL = "http://localhost:8080/yourApplicationName/upload<http://localhost:8080/springgwt/upload> ";*
D. On Thu, Jan 22, 2009 at 8:17 AM, Dariusz Borowski <[email protected]>wrote: > Hmm... I thought I know what you are trying to do, but now you lost me... > > Never mind, If you want to upload your files to a servlet, you might > consider two things. First, you would need to use the *RequestBuilder*class > to be able to send your data to your servlet like this: > > > *String WEB_MODE_URL = "/upload"; > String HOSTED_MODE_URL = "http://localhost:8080/springgwt/upload";* > * > if( GWT.isScript() ) { > > url = URL.encode( WEB_MODE_URL ); > > } else { > > url = URL.encode( HOSTED_MODE_URL ); > > } > > RequestBuilder builder = new RequestBuilder(RequestBuilder.GET, url);* > > (while you debugging, don't forget to check if you are in a HOSTED or WEB > MODE. You can check it out via *GWT.isScript();* ) > > On the back end you can use the *MultipartRequest *to fetch all your files > coming from the frot end. This is the approach I would go for. > > Dariusz > > > > On Thu, Jan 22, 2009 at 6:10 AM, Arji <[email protected]> wrote: > >> >> Hi alberto33 , >> >> I have a bit of knowledge in using GWT-RPC and I already tried / >> tested working examples of my own. >> >> My problem is, how to (exactly) get the data from an EditorGridPanel >> into the servlet. >> >> I can get the values from a textfield, text area, etc, but is there a >> way to get the data inside a editor gridpanel as a list? >> >> I know how to create the servlet connecting to the GWT, and successful >> in file upload. >> >> My question is, the values inside a editor grid panel into the servle >> (or server). >> >> Thanks! >> >> On Jan 22, 11:12 am, alberto33 <[email protected]> wrote: >> > Arji, >> > >> > Basically what you want to make an GWT RPC call to pass the data >> > along. >> > >> > Take at look at: >> > >> > http://code.google.com/docreader/#p=google-web-toolkit-doc-1-5&s=goog. >> .. >> > >> > or do a google search GWT RPC to find out more info. >> > >> > On Jan 21, 8:47 pm,Arji<[email protected]> wrote: >> > >> > > Hi Dariusz, >> > >> > > Thanks for the reply! My goal is, to save the contents of the >> > > EditorGridPanel to a Database.. I don't know how to get the values in >> > > the servlet.. Im using servlet because the formpanel involves file >> > > upload. >> > >> > > Is there a way? >> > >> > > Thanks so much! >> > >> > > On Jan 20, 6:51 pm, "Dariusz Borowski" <[email protected]> wrote: >> > >> > > > But I found already 3 examples where you can get the values from a >> grid: >> > >> > > > >> http://www.gwt-ext.com/demo/#gridEventshttp://www.gwt-ext.com/demo/#c.<http://www.gwt-ext.com/demo/#gridEventshttp://www.gwt-ext.com/demo/%23c.> >> .. >> > >> > > > Maybe it's not exactly what you are looking for, but at least a hint >> how to >> > > > do so. >> > >> > > > Dariusz >> > >> > > > On Tue, Jan 20, 2009 at 11:35 AM,Arji<[email protected]> wrote: >> > >> > > > > Hi, >> > >> > > > > I've searched the forums for some examples, but I can't seem to >> find >> > > > > any. How can I pass the whole data content of an Editable Grid >> Panel >> > > > > into a Servlet.. >> > >> > > > > Im successful in passing a Textfield, by accessing its name, >> > >> > > > > /*In the servlet class*/ >> > > > > FileItemStream item = iterator.next(); >> > > > > String name = item.getFieldName(); >> > > > > String value = Streams.asString(stream); >> > >> > > > > But how can I get the editor grid values? >> > >> > > > > Thanks So much! >> >> >> > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "GWT-Ext Developer Forum" 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/gwt-ext?hl=en -~----------~----~----~----~------~----~------~--~---
