cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Johannes Becker <jonnybec...@gmx.net>
Subject Re: File paths in a package
Date Wed, 10 Aug 2005 18:54:47 GMT
Thanks! Works now.

Cheers
Jonny

Thomas Soddemann wrote:

>Hi Jonny,
>
>use
>InputStream xmlInputStream = com.aaa.bbb.ccc.class.getResourceAsStream(...);
>
>Cheers,
>Thomas
>
>Johannes Becker wrote:
>
>  
>
>>Hi,
>>
>>I've got a package, let's say: com.aaa.bbb.ccc
>>
>>In folder ccc I've got a class and a file ccc.xsl . In this class I'm
>>accessing this file. In my case:
>>
>>InputStream xmlInputStreamInput = *new*
>>FileInputStream("com\\aaa\\bbb\\ccc.xsl");
>>
>>Then I get an error that the file couldn't be found.
>>
>>How can I address this file correctly in cocoon?
>>
>>Thanks
>>Jonny
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>>For additional commands, e-mail: users-help@cocoon.apache.org
>>
>>    
>>
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>For additional commands, e-mail: users-help@cocoon.apache.org
>
>
>  
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message