Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Where should I locate external files?

    Hello everybody.

    First of all, I'm sorry for my English. In second place, I wouldn't make this question if I had the time enough to study it, but after several days doing my best, and the time ending, I'm forced to beg you a help.

    I've developed a SmartGWT application in Eclipse and now I've deployed it into Tomcat. In the server side, I need to read some txt files, placed in the "Transcriptions" directory. I had placed this directory under the WAR directory, so when I was developing my application with Eclipse, the only thing I had to do to access all the txt files was writing "File f = new File("transcriptions")".

    But now, once I've deployed it into Tomcat, I can't access this directory in this way anymore. I thought of placing it under the "com.my_application.server" package, but I haven't been able to access to the directory.

    I've tried to use the GWT.getModuleName or ModuleBaseUrl methods, but because of it's placed in the server side, it throws an error.

    So, I'd be very, very grateful if somebody can tell me where I have to place the directory with my txt files, and how I can access to it.

    Thank you very much in advance,
    Greetings!
Working...
X