tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Filip Hanik" <Filip.Ha...@evant.com>
Subject RE: where put the business components properties file
Date Wed, 12 Feb 2003 20:27:33 GMT
put it in WEB-INF/classes

then you can access it from your servlet or JSP by using the classloader

for example, 

Properties prop = new Properties();
InputStream in this.getClass().getClassLoader().getResourceAsStream("xxx_bcModule.properties");
if ( in != null ) prop.read(in);

Filip


-----Original Message-----
From: Pedro Cardoso [mailto:pjdc@maisis.pt]
Sent: Wednesday, February 12, 2003 12:11 PM
To: tomcat user
Subject: where put the business components properties file


I have 2 projects developed with Oracle JDeveloper 3.2.3: one for 
business componets and another for JSP's. The connection are made with 
the  xxx_bcModule.properties file. Where should i put this file to run 
the projects in tomcat?

 i try to put this file in one directory outside the tomcat root and add 
this path at CLASSPATH in catalina.bat but don't work. Any ideia?

thanks
Pedro Cardoso



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


Mime
View raw message