Hi

 

I am new to Slide and Servlets/JSP.

 

I have created a taglib with a tag Message which reads a properties
file.

 

But I can't get access to my properties file.

 

I deploy the app. In a war file and the structure is as follows.

 

myApp

- myJsp

- classes

     - myprop.properties

     - Message.class

- web-inf

     - mylib.tld

     - web.xml

 

My only problem is the file access for myprop, everything else works
fine, I use the following to access the file.

 

   InputStream thefile =
this.getClass().getResourceAsStream("/myprop.properties");

 

I have tried almost any combination of paths (the above is just one of
them), and the only time I got it to works was when I copied the
properties file to the shared/classes dir of the tomcat server and when
I used the absolute path.

 

What is the relative root dir to my application, when I deploy the war.

 

 

Hope someone can help on this issue.

 

 

Regards 

 

Troels 

 

www.Qualiware.com

 

Reply via email to