wood burning stoves 2.0*
The moose likes Servlets and the fly likes Home directory Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Home directory" Watch "Home directory" New topic
Author

Home directory

Siva kandasamy
Ranch Hand

Joined: Dec 31, 2002
Posts: 139
Hi there,
I am working on unix environment.

1. How do I find user's home directory ie. $HOME from the running servlet.
2. How do I find the directory, where my class is located.

thanks
siva




thanks
siva
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60740
    
  65

How do I find user's home directory ie. $HOME from the running servlet.


What user? The person sitting at the browser?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Siva kandasamy
Ranch Hand

Joined: Dec 31, 2002
Posts: 139
No. I mean the application host home directory.
thanks
siva
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Home directory
 
Similar Threads
How do I configure to enable default ldap authentication ?
Where is sun/i-planet forum
how to find current directory and user home directory ?
How do I setup servlet directory ?
ant script and solaris package