I think i asked the wrong quiestion.. I dont need current directory i need the 
webapp directory.

-----Original Message-----
From: Leon Rosenberg [mailto:[EMAIL PROTECTED]
Sent: Friday, June 24, 2005 11:27 AM
To: Struts Users Mailing List
Subject: Re: [OT] find out web app path / Quartz Scheduler?


your current directory is the one you get by new File(".");

On Fri, 2005-06-24 at 11:28 -0400, Brian McGovern wrote:
> Hi
> 
> I've got a struts web app but am running Quartz also.  In some places in my 
> app I need the servlet to figure out the path under which its running.  I do 
> that like this.
> 
> getServlet().getServletContext().getRealPath("foo");
> 
> This returns me my web app path up to the foo directory.
> 
> 
> But in my Quartz schedule class that doesnt extent any Action class this 
> obviously doesnt work.  So how can I get non servlet extended classes to 
> figure out current directory?
> 
> Thanks
> 



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to