cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ricardo Rocha <rica...@apache.org>
Subject Re: OT question on getResource()
Date Thu, 11 May 2000 09:55:31 GMT
> From one package, how can I get a resource from another package?
> E.g., if I'm in org.apache.cocoon and I want the resource
> cocoon.properties, I just do this: 
>    getClass().getResource("cocoon.properties")
> but suppose I want, uh, org.apache.xalan.xalan.properties. this doesn't
> work:
>    getClass().getResource("org.apache.xalan.xalan.properties")
> nor does this
>getClass().getClassLoader().getSystemResource("org.apache.xalan.xalan.properties")

Have you tried:

getClass().getClassLoader().getSystemResource("/org/apache/xalan/xalan/properties")


Mime
View raw message