Subject: RE: JSP on Tomcat: application scope variable
Thanks. I used a singleton class and initialized it
from an impl of ServletContextListener.
If I place a properties file in WEB-INF/classes of my
webapp, I am unable to read it from my class:
FileNotFoundException.
(Absolute path works fine
Good Morning Rahul-
typically the properties file is located on your classpath
Anyone else?
Martin-
- Original Message -
From: "Rahul" <[EMAIL PROTECTED]>
To: "Tomcat Users List"
Sent: Sunday, March 05, 2006 3:42 PM
Subject: RE: JSP on Tomcat: application s
Rahul wrote:
> //properties file in classes/com/example/test
> myProps.load(new
> FileInputStream("com/example/test/test.properties"));
>
> Is this not the correct way to specify the path?
Try using getResourceAsStream()
Mark
---
ored, you can
> place them in their own
> class.
>
> Tim
>
>
> -Original Message-
> From: Rahul [mailto:[EMAIL PROTECTED]
> Sent: Sunday, March 05, 2006 2:46 AM
> To: users@tomcat.apache.org
> Subject: JSP on Tomcat: application scope variable
>
> Hi
-Original Message-
From: Rahul [mailto:[EMAIL PROTECTED]
Sent: Sunday, March 05, 2006 2:46 AM
To: users@tomcat.apache.org
Subject: JSP on Tomcat: application scope variable
Hi,
I have a simple web application which has two JSP
pages and some class files containing
implementation/logic
Hi,
I have a simple web application which has two JSP
pages and some class files containing
implementation/logic. These are invoked from the JSP
files.
I want to store some values e.g. properties from a
properties files in the application scope (or alike)
so that in my class files I can read th