I have completed the GWT JSON tutorial (http://code.google.com/
webtoolkit/doc/latest/tutorial/JSON.html) but ran into trouble.  The
servlet class coded therein (JsonStockData) works fine in Firefox (v
3.0.18) but in in IE (v 7).

The tutorial directed me to run the servlet directly from the address
bar in the browser, as follows: 
http://localhost:8888/stockwatcher/stockPrices?q=ABC+DEF.
When I do that in Firefox, it generates a JSON script including stock
price and change information for fictitious stocks ABC and DEF.  That
proves that the servlet will work correctly when invoked from the GWT
code in the StockWatcher class.  And indeed it does work - when I type
in any fictitious stock symbol, the servlet generates quasi-random
stock price data and returns it in a little JSON file which is then
included in the output data.

However, when I try both of those things (running the servlet
separately and running it as part of the StockWatcher application) I
get "HTTP method GET is not supported by this URL" messages
displayed.  That's an HTTP 405 error.  I've looked up that error on
Google, and the concensus seems to be that it occurs when the doGet()
method is not defined in the servlet.  I'm sure that would be
applicable if there was no doGet() method, but I do have a doGet()
method, copied in from the tutorial code.

I have not tried this with any other browsers.

Any idea what's wrong?  Is there some setting in IE7 that is
preventing the GET method from running?

I'm not posting any code here because it's all taken from the
tutorial.  However, is if there is any specific thing you want to see,
let me know and I'll post it.

Thanks.

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