| Author |
how to retrieve the webapp directory without using ServletContex
|
Meir Yan
Ranch Hand
Joined: Apr 27, 2006
Posts: 597
|
|
Hello all i need to find out dynamically in which webapp directory my webapp running but , i can't use ServletContex for that (dont ask ...) is there any way to find out ?
|
 |
Ben Souther
Sheriff
Joined: Dec 11, 2004
Posts: 13410
|
|
No. Furthermore, even with the methods provided by the ServletContext object, it is not always possible to find the directory dynamically because web applications are not required to be run from a directory. You said not to ask so I won't but if you can tell us what it is that you're trying to accomplish maybe someone can suggest an alternate approach.
|
Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
|
 |
 |
|
|
subject: how to retrieve the webapp directory without using ServletContex
|
|
|