No.  It has to be under a location accessible via the classpath.  The JSPs
are web content.  Read this:

http://www.javaworld.com/javaworld/javaqa/2003-08/01-qa-0808-property.html 

Tim

-----Original Message-----
From: Feris Thia [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, May 03, 2006 8:56 AM
To: Tomcat Users List; [EMAIL PROTECTED]
Subject: Re: jndi.properties

Ic.... so we cannot just load it from the directory where jsp are and use
this code ?

=====================================
InitialContext jndiContext = new InitialContext();
=====================================

On 5/3/06, abdurrahman sahin <[EMAIL PROTECTED]> wrote:
>
> i think , it is actully related to where you are looking for.
> i think you can put it anyware as long as the diretory you put it is 
> accessible.
>
> http://asahin.net
>
> private static final String CONFIG_FILE="resources/jndi.properties";
> FileInputStream fis = new FileInputStream(CONFIG_FILE);
>                         myProperties.load(fis);
>
>


--
Regards,
Feris
PT. Putera Handal Indotama
JL. KH. Moh. Mansyur No. 11 Blok B.8-12
Telp. +62-21-631 6688 (Hunting)
Fax. +62-21-6330211
Jakarta (10140) - INDONESIA

---------------------------------------------------------------------
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