• 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
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

Problem in accessing the local files & folders in web application

 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I can't access(read) the local files & folder in my web application.Means I want to access files & folder from a machine when I use my web application that machine. And I have deployed my application at two different location for testing & development. I access the folders & files from the development server & can't access from the test server & folders & files on a single machine. I am accessing the files as //comp31/test_project/script/script_j.doc
the //comp31 is the domain name (or my computer name) & test_project is the folder name in which files needs to read.

Please help me.....
[ October 22, 2008: Message edited by: Ritesh Chopade ]
 
Bartender
Posts: 9626
16
Mac OS X Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
For security purposes, an application server will usually limit an application's access to the deployment directory. I use Tomcat often and have been able to change the security settings to allow access to other directories. It's also possible to turn security off (NOT RECOMMENDED!).
What server are you using?
 
author and iconoclast
Posts: 24207
46
Mac OS X Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Another consideration: perhaps that path is only meaningful on your development machine. For example, if the production machine is a Linux server, it's unlikely that your UNC path makes any sense. If if it's not, you have to make sure the shares are available.
 
You can't expect to wield supreme executive power just because
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic