|
-
April 5th, 1999, 01:03 PM
#1
Application path
Hi :
How do I determine what path my java main application class is loaded from. "user.dir" is the current working directory, but if the actual jar or class file is loaded from some other directory, how can I determine that directory inside the program?
TIA,Rima Parikh.
-
November 29th, 2000, 09:04 AM
#2
Re: Application path
What r u using ?
If JSP, the application object is available implicitly, inside JSP, application.getRealPath(""), will return you what you want.
FYI, application object is part of javax.servlet.ServletContext package
rgds
-
October 10th, 2005, 09:52 PM
#3
Re: Application path
Thank you sjeevan I spent quite a while looking for this little code. It was very helpful
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|