Re: Problems reading the content of a text file.

2009-12-23 Thread Juan M.M.M.
Thank you very much. You got the answer! ../movies.txt Happy Christmas! On 22 dic, 21:14, Sripathi Krishnan sripathi.krish...@gmail.com wrote: The URL you are trying to access is wrong... Assuming you module is named hangman, this line                final RequestBuilder requestBuilder =

Re: Problems reading the content of a text file.

2009-12-23 Thread Andrés Cerezo
Hello Juan in this link http://www.gwtapps.com/ you have the source code you are testing. Greetings. 2009/12/23 Juan M.M.M. knn0n@gmail.com Thank you very much. You got the answer! ../movies.txt Happy Christmas! On 22 dic, 21:14, Sripathi Krishnan sripathi.krish...@gmail.com

Re: Problems reading the content of a text file.

2009-12-23 Thread mdwarne
Hi, RequestBuilder sends a request to the server. I've never used it (I use GWT-RPC) . But perhaps you need to put your server address into the request? Or maybe call the GWT.getModuleBaseUrl() or GWT.getHostPageBaseUrl() to get the Base URL you need, and concat the file name to the baseUrl?

Problems reading the content of a text file.

2009-12-22 Thread Juan M.M.M.
Hi! I'm doing an example that I found ina book about GWT. It's the typical example of the hangman. I'm using Eclipse and GWT 2.0. This is my code: public class AhorGwt implements EntryPoint { private FlowPanel letters = new FlowPanel(); private Label wordLabel = new Label();

Re: Problems reading the content of a text file.

2009-12-22 Thread Sripathi Krishnan
The URL you are trying to access is wrong... Assuming you module is named hangman, this line final RequestBuilder requestBuilder = new RequestBuilder( RequestBuilder.POST, movies.txt ); makes a request to http://myserver.com/mywar/hangman/movies.txt, whereas you want it to be