• Post Reply Bookmark Topic Watch Topic
  • New Topic

Relative Path problem  RSS feed

 
Benson Fung
Ranch Hand
Posts: 220
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have a web app. stored at TOMCAT_HOME/webapp.
And a set of pictures files stored at C:\gif

How can the web app. view the set of pictures?

Please help

Thanks
Benson
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65833
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It can't unless you either move the files to someplace that the web container can address, set up the server to access them there, or write a servlet that can read the files from the file system and stream them to the browser.
[ September 01, 2005: Message edited by: Bear Bibeault ]
 
Benson Fung
Ranch Hand
Posts: 220
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I can now. just setup <Context></Context> in server.xml. It will works.

However, how to setup in WebSphere?

If anyone knows, please let me know.

Thanks
Benson
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65833
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, as I said they need to be somewhere where the server can access them.

For the rest of your question, I'm moving this to the Websphere forum.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!