Re: Relative path to a txt files repository

2011-11-07 Thread Jeffrey Chimene
On 11/6/2011 11:23 PM, Sabbia wrote: Hi everyone! I've developed a GWT-SmartGWT application using Eclipse. In this application, a Java class from the server side must read some txt files in a directory called Transcriptions. Working with Eclipse, I had no problem at all to access to this

Re: Relative path to a txt files repository

2011-11-07 Thread Sabbia
Gracias Jeffrey ;) So, as I've understood, the best thing is to check if application is executing in production mode, and if not, use GWT.getServletContext().getRealPath(my_app), right? Thank you very much! Cheers!! On 7 nov, 14:59, Jeffrey Chimene jchim...@gmail.com wrote: On 11/6/2011 11:23

Re: Relative path to a txt files repository

2011-11-07 Thread Jeff Chimene
On 11/07/2011 06:33 PM, Sabbia wrote: Gracias Jeffrey ;) So, as I've understood, the best thing is to check if application is executing in production mode, and if not, use GWT.getServletContext().getRealPath(my_app), right? Well, the exact mechanism that's inside the if(production) {} is up to

Re: Relative path to a txt files repository

2011-11-07 Thread Sabbia
Ok Jeffrey, it's all clear now! I thought there was a way to set the base url, but there is not, as you've said, I've to play with the GWT.isProdMode and get the base url. Thank you very much, you've been very, very helpful. Greetings!! P.S.: y buena suerte tambiƩn para ti ;) On 8 nov, 02:57,

Relative path to a txt files repository

2011-11-06 Thread Sabbia
Hi everyone! I've developed a GWT-SmartGWT application using Eclipse. In this application, a Java class from the server side must read some txt files in a directory called Transcriptions. Working with Eclipse, I had no problem at all to access to this directory. I had located it under the WAR