forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gav...." <brightoncomput...@brightontown.com.au>
Subject RE: Dispatcher and linking to image resources (Was: ForrestBot build for forrest-sample-2 FAILED)
Date Fri, 02 Jun 2006 14:01:16 GMT


> -----Original Message-----
> From: David Crossley [mailto:crossley@apache.org]
> Sent: Friday, 2 June 2006 8:26 PM
> To: dev@forrest.apache.org
> Subject: Dispatcher and linking to image resources (Was: ForrestBot build
> for forrest-sample-2 FAILED)
> 
> Forrestbot@forrest.zones.apache.org wrote:
> > Automated build for forrest-sample-2 FAILED
> > ...
> > ...
> >      [java] X [0]                                     /icon-b.png
> 	BROKEN: /export/home/config/forrestbot-trunk/conf/work/forrest-
> sample-2/src/documentation/content/xdocs/icon-b.png (No such file or
> directory)
> > ...
> 
> This same example works using skins.
> 
> <img src="/icon-b.png"  ...
> 
> The resources.xmap and locationmap resolve to find
> source file in src/documentation/resources/images/ directory.
> 
> However with Dispatcher it seems to fail the locationmap
> and tries to find it at xdocs/icon-b.png

That's right IIRC in how Dispatcher handles it, maybe this is why you think
my patch did not work, I patched it for Dispatcher.

Using the leading / to indicate 'relative from root' means it will look in 
Xdocs, that is how it is written. 

e.g - 

1. <img src="/icon-b.png"  ... results in looking in xdocs.
2. <img src="icon-b.png"  ... results in looking in current directory of
requesting source file.
3. <img src="images/icon-b.png"  ... results in looking in
src/documentation/resources/images/ directory.

4. <img src="/images/icon-b.png"  ... results in looking in xdocs/images.

This is how I explained it was working and how the patch cured the problem
Of pdf images not showing. They work for me if the images are in the
specified directory according to how you define the URL. I offered to do it
A different way but was told to just 'fix the issue' of the pdf images not
Showing so I did that. 

Let me know if you want it doing differently.

Gav...


> 
> It is a silly example and perhaps it should be removed
> but why the difference between skins and Dispatcher?
> 
> -David
> 
> 
> --
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.1.394 / Virus Database: 268.8.1/354 - Release Date: 6/1/2006



Mime
View raw message