It's not a secret anymore!
The moose likes Servlets and the fly likes How to get network path? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Servlets
Reply Bookmark "How to get network path?" Watch "How to get network path?" New topic
Author

How to get network path?

RameSan Rahul
Greenhorn

Joined: Jul 21, 2005
Posts: 19
Hi

I am creating a web application which has to connect to MS Access database for that i need to know how to get the absolute path ( eg. c:\program files\...) of my web site . Is it possible to get it? if so please tell me , this is very urgent.
Dave Salter
Ranch Hand

Joined: Jul 20, 2005
Posts: 292

You want to do something like

Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 26201
    
  66

RameSan,
Why do you need the absolute path? Web applications are supposed to be independent of where they happen to be deployed to.

In any case, this is more of a Servlet question than a JBDC one. I'll mov eit to Servlets for you.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
RameSan Rahul
Greenhorn

Joined: Jul 21, 2005
Posts: 19
Thank u Dave Salter & Jeanne Boyarsky for your replies. I will try this and let u know the results

Ramesan
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: How to get network path?
 
Similar Threads
how to create a file on web server at runtime
how to get path of web application in tomcat?
Dispatcher Relative Path
path of application
Servlet Write a file to server