aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes Relative Path problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Relative Path problem" Watch "Relative Path problem" New topic
Author

Relative Path problem

Benson Fung
Ranch Hand

Joined: Apr 10, 2003
Posts: 207
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

Joined: Jan 10, 2002
Posts: 61227
    
  66

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 ]

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Benson Fung
Ranch Hand

Joined: Apr 10, 2003
Posts: 207
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

Joined: Jan 10, 2002
Posts: 61227
    
  66

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.
 
subject: Relative Path problem