users@jersey.java.net

How can I get the current directory of my application?

From: Marcelo Emanoel B. Diniz <marceloemanoel_at_gmail.com>
Date: Thu, 27 Nov 2008 12:49:10 -0300

Hello people I'm developing my first resources and would like to know how
could I get the current directory of my application. For instance:
if I simply use new File(); What I get is C:\tomcat\bin
I wanna catch the C:\tomcat\web-apps\myApp

is it possible? with servlets I could pass a parameter or get it through the
request....

Thanks everyone :)

-- 
Marcelo Emanoel Bezerra Diniz
----------------------------------------------
Arquiteto de Software da Aptools - www.aptools.com.br
GWT Brasil - www.gwt.com.br
Sun Certified Java Programmer 5.0