struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paweł Wielgus" <poulw...@gmail.com>
Subject Re: How to get Web Application path at Run-Time
Date Wed, 02 Jul 2008 07:46:35 GMT
Hi,
for example:
filterConfig.getServletContext().getRealPath("")
in FilterDispatcher.init(...) method.

Best greetings,
Paweł Wilegus.

On 02/07/2008, Aggarwal, Rajat <rajat.aggarwal@razorsight.com> wrote:
> Hi All,
>
>
>
>  I am developing a web application using the struts 2 framework. In one
>  of the actions, I need to create a file at the run-time at a particular
>  location relative to the path where my web-application is deployed. How
>  can I retrieve the path at which my Web-app is deployed at run-time in
>  my action class?
>
>
>
>  An early response shall be appreciated
>
>
>
>  Thanks and regards
>
>
>
>  Rajat Aggarwal
>
>  ---------------------------------------------------------------------
>  To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>  For additional commands, e-mail: user-help@struts.apache.org
>
>
Mime
View raw message