Hi Rahul,
Basically, you get the contents of an XML file on the server and send it as
a string to the GWT client. It gets changed on the client, then you send it
back as a string to the server where a server script writes it back to the
file.

You can send a file from the server to the client and have the user save it
somewhere, but your GWT code can't update the file on the client's machine
using HTML and JavaScript (which is what GWT is) so unless the user updates
the XML in some other way, FileUpload is no use to you.

Ian

http://examples.roughian.com


2009/8/19 Rahul <[email protected]>

>
> hi,
> I am sorry if i was unclear with my issue( because i havent recieved
> any replies yet)
>
> I am getting an xml file from the server using RequestBuilder. Then I
> am modifying the values of the xml and I would like to post back the
> modified xml back to the server. So the next time i get the xml file,
> i get the modified xml file.
>
> I am able to get the file from server and successful modify it, but i
> am not able to get how to send the modified xml back to server.
> I have few options but i have reasons that they would not work:
>
> a) one if to use gwtupload or fileupload widget, but they want a file
> to specified i.e. the path and wht is the path of the xml file that
> has been retrieved by the client?
>
> b) From RequestBuilder, i think there should be a way from this where
> the functionality can be done, but i am searchingt and not able to
> find it
>
> please help!!!
>
>
> On Aug 19, 11:05 am, Rahul <[email protected]> wrote:
> > Hi
> > Would using the Fileupload widget or the gwtupload project solve my
> > purpose?
> >
> > On Aug 18, 1:47 pm, Rahul <[email protected]> wrote:
> >
> > > Hi,
> > > I want to retrieve an XML from the server to my client , changing
> > > values of that xml and want to send the modified xml back to the
> > > server.
> >
> > > Presently i am successful in retrieving the xml and modifying the xml,
> > > but how to send it back?
> >
> > > i am using:
> > > RequestBuilder builder5 = new RequestBuilder
> > > (RequestBuilder.POST,"file.xml");
> >
> > > to post it back to the server
> >
> > > but this is not working
> > > can anyone tell me where am i going wrong?
> >
>

--~--~---------~--~----~------------~-------~--~----~
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