Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » JSP Interest »

Re: Jsp where to keep our own config files

Prasanth Ramachandran

2003-10-22

Replies:

  You can keep your config files in your webapp root or any
subdirectory in that.
Use application.getRealPath("") to get the full path of the webapp root.

-Prasanth

s_senthil_raja@(protected):

> sir,
>  Actually my jsp pages are under /webapps/Raja directory, I want to
> refer
> one config file called conf.properties my question is where I have to
> keep
> this file so that it is visible to my jsp,
> How I have to specify the config file path, whether I have to give
> full path
> like
> C:\Program Files\Apache Software Foundation\Tomcat
> 5.0\webapps\Raja\input\conf.properties or
> ..\\input\\conf.properties is enough ?.
>           Plz help me .
>                             -Raja.
>
> _________________________________________________________________
> MSN Hotmail now on your Mobile phone.
> http://server1.msn.co.in/sp03/mobilesms/ Click here.
>
> ===========================================================================
>
> To unsubscribe: mailto listserv@(protected)
> JSP-INTEREST".
> For digest: mailto listserv@(protected)
> DIGEST".
>
> Some relevant archives, FAQs and Forums on JSPs can be found at:
>
> http://java.sun.com/products/jsp
> http://archives.java.sun.com/jsp-interest.html
> http://forums.java.sun.com
> http://www.jspinsider.com


--
Your favorite stores, helpful shopping tools and great gift ideas.
Experience the convenience of buying online with Shop@(protected)!
http://shopnow.netscape.com/

===========================================================================
To unsubscribe: mailto listserv@(protected)".
For digest: mailto listserv@(protected)".

Some relevant archives, FAQs and Forums on JSPs can be found at:

http://java.sun.com/products/jsp
http://archives.java.sun.com/jsp-interest.html
http://forums.java.sun.com
http://www.jspinsider.com


©2008 junlu.com - Jax Systems, LLC, U.S.A.