The following code
RequestBuilder builder = new RequestBuilder(RequestBuilder.GET, URL.encode("http://localhost:8080/xxxx/yyyy"));
try {
Request request = builder.sendRequest(null, new RequestCallback() {
public void onError(Request request, Throwable exception) {
}
public void onResponseReceived(Request request, Response response) {
}
});
} catch (RequestException e) {
possiblePages.clear(); possiblePages.addItem("could not connect to server");
}
Written in GWT/Java compiles to javascript that gives the following error (shown in firebug)
syntax error
[Break on this error] begin
"begin" is the first line of the text file that is returned from the url, so I see where it is getting it from, but why is it being treated as JavaScript?