• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

on using GWT.getHostPageBaseURL()

 
Ranch Hand
Posts: 106
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,

I'm using GWT.getHostPageBaseURL() to access a file in my server, right now, what i deploy is the war file containing my folder docsFromUpload.

C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps\ipres\docsFromUpload



I access the files inside using this:



But the directory changed such that my docsFromUpload is now outside (one level higher) of my deployed war file, may I know how I can still access filename.doc? Using the code above, I can't seem to reach filename.doc in this directory:

C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps\docsFromUpload



Thank you in advance!

Regards!
 
Bartender
Posts: 11497
19
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Not sure about this but did you try out somePath/../stuff?
I am not even sure this will work. Does the servlet container allow you to touch stuff outside your deployed app?
 
christine clarin
Ranch Hand
Posts: 106
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,

Yes, I have permission to touch other folders outside the deployed app. I was wondering, what do you mean by somePath/../stuff, this is how I "save" to the said folder one level up, but I don't know how to view these files from my system given that when I use GWT.getHostPageBaseURL(), what I get is http://localhost:8080/_____.file, if I use this, the system can't find the files specified, does this mean that i have to put an absolute path instead? because I'm trying to avoid this.

Thanks.

Regards,

Chris
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic