Hi David, It works ! Perhaps the GWT tuto should be changed. The JsonStockData servlet has 2 errors : coma & header.
Thanx yu very much. G. On 11 déc, 18:51, David <[email protected]> wrote: > I ran into this problem too. It looks like there is some caching > going on so that repeated requests with the same list of stocks will > return cached results. I was able to fix this by adding the following > code to the top of the doGet method in JsonStockData: > > if (req.getProtocol().compareTo("HTTP/1.0") == 0) { > resp.setHeader("Pragma", "no-cache"); > } else if (req.getProtocol().compareTo("HTTP/1.1") == 0) { > resp.setHeader("Cache-Control", "no-cache"); > } > resp.setDateHeader("Expires", 0); > > On Dec 5, 8:10 am, TalkinJive <[email protected]> wrote: > > > > > Hi, > > > I'm new with GWT. I'm trying JSON with Stockwatcher application (with > > servlet, overlay type and RequestBuilder). I've fixed the coma problem > > in theJsonStockDataservlet. > > > When I add or remove an item, method refreshWatchList > > callJsonStockDataservlet and everything is OK. > > BUT when the timer call refreshWatchList, the servlet is not called > > and the Response is always the same. So the prices don't change. No > > exception is throwed ! > > > I've found the same problem here > > :http://groups.google.com/group/google-web-toolkit/browse_thread/threa... > > > Have I done an error ? > > Is there a bug in Stockwatcher JSON tutorial ? > > or a bug in GWT ? > > Could you help me to fix that please ? > > > Gérald.- Masquer le texte des messages précédents - > > - Afficher le texte des messages précédents - -- 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.
