cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vadim Gritsenko" <>
Subject RE: serving images?
Date Mon, 04 Feb 2002 18:48:22 GMT
> From: Jozsa Kristof []
> Ok, here's a trivial question: how do I serve image files using
> I have some html tag in the results of some page, like:
> <img border="0" src="/images/company/wtf.jpg">
> and in the sitemap's main pipeline (the reader is configured at the
> <map:match pattern="images/**.jpg">
>   <map:read src="/images/{1}.jpg" mime-type="image/jpg"/>
> </map:match>
> The docs says that's enough, I think this should be enough too. The
> says: 'org.apache.cocoon.ResourceNotFoundException: Resource not found
> file:/images/company/wtf.jpg'.
> What do I miss from here?

Do you have /images directory at the root of the file system?
Or, if images are located in context directory, try without leading

   <map:read src="images/{1}.jpg" mime-type="image/jpg"/>


Please check that your question has not already been answered in the
FAQ before posting. <>

To unsubscribe, e-mail: <>
For additional commands, e-mail: <>

View raw message