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