cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vadim Gritsenko <vadim.gritse...@verizon.net>
Subject Re: source resolving help
Date Sun, 18 May 2003 22:16:55 GMT
Geoff Howard wrote:
...

>Here's my situation: in a sitemap component (a file upload handler  
>which will move a PartOnDisk, or write out the stream of a 
>FileInMemory), I want to: 
>1) resolve a directory path relative to the current sitemap, 
>2) create a file in that directory, 
>3) write to the file one time, and close/release it as necessary.
>
>so, I could do (?) 
>FileSource fs = (FileSource)resolver.resolveURI("directory/filename.ext");
>

ClassCastException!

Why do you think you will get FileSource? :)
Of course, sometimes, you *will* get FileSource. But in many ligitimate 
situations you won't.

Vadim



Mime
View raw message