This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
The moose likes Websphere and the fly likes Relative Path problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Products » Websphere
Bookmark "Relative Path problem" Watch "Relative Path problem" New topic
Author

Relative Path problem

Benson Fung
Ranch Hand

Joined: Apr 10, 2003
Posts: 214
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: 63353
    
  70

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: 214
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: 63353
    
  70

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Relative Path problem
 
It's not a secret anymore!