You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Pradeep Chauhan <Pr...@Indussoft.com> on 2005/03/31 09:23:28 UTC

how to get application real path

Hi , 

How we can get real path of application in java. ?

thanks and regards, 
Pradeep
 


DISCLAIMER:
This message, including any attachments contains confidential and privileged information for the sole use of the intended recipient(s), and is protected by law.
If you are not the intended recipient, please destroy all copies of the original message. Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this email or any action taken in reliance on this e-mail is strictly prohibited and may be unlawful.
Indus and R Systems International Ltd reserves the right to record, monitor, and inspect all email communications through its internal and external networks. Your messages shall be subject to such lawful supervision as Indus and R Systems International Ltd deems necessary in order to protect its information, interests and reputation.
Indus and R Systems International Ltd prohibits and takes steps to prevent its information systems from being used to view, store or forward offensive or discriminatory material.


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: how to get application real path

Posted by Kanchan Deshpande <ka...@gmail.com>.
Hi Pradeep,

I do not get a very clear idea about the problem, but I can suggest
you to try the following:

String realPath =  getServletContext().getRealPath(configPath);

You can try getRealPath() method on the Servlet Context.

Thanks,
~Kanchan.


On Thu, 31 Mar 2005 12:53:28 +0530, Pradeep Chauhan
<Pr...@indussoft.com> wrote:
> Hi ,
> 
> How we can get real path of application in java. ?
> 
> thanks and regards,
> Pradeep
> 
> DISCLAIMER:
> This message, including any attachments contains confidential and privileged information for the sole use of the intended recipient(s), and is protected by law.
> If you are not the intended recipient, please destroy all copies of the original message. Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this email or any action taken in reliance on this e-mail is strictly prohibited and may be unlawful.
> Indus and R Systems International Ltd reserves the right to record, monitor, and inspect all email communications through its internal and external networks. Your messages shall be subject to such lawful supervision as Indus and R Systems International Ltd deems necessary in order to protect its information, interests and reputation.
> Indus and R Systems International Ltd prohibits and takes steps to prevent its information systems from being used to view, store or forward offensive or discriminatory material.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org