Hi Frank, Thanks a lot its working now
On Sep 8, 1:43 pm, Frank Argueta <[email protected]> wrote: > Use > > final RequestBuilder builder2 = new RequestBuilder > (RequestBuilder.GET,"A.xml?ts=" + new Date().getTime()); > > to prevent the browser from picking up a cached copy. > > On Sep 8, 1:29 pm, Rahul <[email protected]> wrote: > > > Hi, > > Yes I am using the war structure > > Let us assume my xml file name is A.xml and my google web toolkit name > > is test > > > I store my A.xml inside test\war\test folder > > > This is the code at the client side i used to invoke A.xml > > > final RequestBuilder builder2 = new RequestBuilder > > (RequestBuilder.GET,"A.xml"); > > try > > { > > Request request2 = > > builder2.sendRequest(null, new > > RequestCallback() > > { > > public void > > onError(Request request2 , Throwable exceptopn) { > > > } > > public void > > onResponseReceived(Request request2, Response > > response2) > > { > > > > > Document xmlDoc11 = XMLParser.parse(response2.getText()); > > > // After this i parse xmlDoc11 to > > check attributes and tags and > > display the contents > > > If I delete A.xml from the folder i get an error "Uncaught exception > > escaped" because there is no file in the folder. If i paste the file i > > still get the old value the one was in the beginning. If i copy the > > contents of A.xml to B.xml and then run it (changing the > > Requestbuilder to A.xml to B.xml) I see in my hosted mode that the > > file is get from the server (because its the first time and not > > cached) and then i see the change in the values > > > Thanks for helping me, if theres any more information you require > > please tell. > > Can you give me a solution for my problem? > > > On Sep 8, 1:00 pm, ThomasWrobel <[email protected]> wrote: > > > > Sorry, I didnt read your problem correctly. > > > Thats really bizarre. > > > Are you using the war structure? or the old one? > > > Have you tried deleteing the files before it compiles? > > > > On Sep 8, 6:21 pm, Rahul <[email protected]> wrote: > > > > > Hi, > > > > Thanks for the reply > > > > I believe( i havent tired it yet) with this i would be able to have no > > > > caching when i deploy my application on the web server(Apache tomcat) > > > > > What about when i am developing my application and testing in the > > > > google webtoolkit hosted mode? > > > > > On Sep 6, 12:01 pm, ThomasWrobel <[email protected]> wrote: > > > > > > Have you tried using a .htaccess file on the sever to force no- > > > > > cacheing? > > > > > > <Files *> > > > > > Header set Cache-Control: "private, pre-check=0, post-check=0, max- > > > > > age=0" > > > > > Header set Expires: 0 > > > > > Header set Pragma: no-cache > > > > > </Files> > > > > > > (If you save this to a *.htaccess file this will set everything in > > > > > the directory not to be cached) > > > > > Assumeing your sever is apache. > > > > > > On Sep 4, 5:02 pm, Rahul <[email protected]> wrote: > > > > > > > Hi, > > > > > > I am reading an file A.xml each time and modifying it and saving it > > > > > > on > > > > > > my server. Now how can the browser or the hosted mode that the file > > > > > > has been changed, because whenever it sees that the name of the file > > > > > > is same i.e. A.xml it never gets from the server, it just shows the > > > > > > content in it local cache which are the old values. > > > > > > > I believe its a cache problem, as the browser never gets A.xml the > > > > > > next time because when seen in the other window of hosted mode, i > > > > > > see > > > > > > that the first time there is a 200 - GET operation which is that the > > > > > > file is send from server to client but the second or the third time, > > > > > > not such GET operation is done > > > > > > > I hope i was clear with my problem statement, if not please ask so i > > > > > > can more elaborate. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
