Re: where put the business components properties file

2003-02-12 Thread Bill Barker
"Pedro Cardoso" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > but i read the properties file by inicialize(View object) after an > useBean tag; and when i run the project in tomcat 4.1 show this: > org.apache.jasper.JasperException: java.lang.RuntimeException:

Re: where put the business components properties file

2003-02-12 Thread Pedro Cardoso
but i read the properties file by inicialize(View object) after an useBean tag; and when i run the project in tomcat 4.1 show this: org.apache.jasper.JasperException: java.lang.RuntimeException: JSP Registry could not locate runtime property file:jsp_bc_BcModule.properties the file is in CLASSP

RE: where put the business components properties file

2003-02-12 Thread Filip Hanik
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 -Ori