On Nov 8, 2007 11:16 AM, mfs <[EMAIL PROTECTED]> wrote:
>
> Actually it does work when the image is in the same directory as that of the
> page (same with the example u pointed out)..how would i refer to an image
> which is altogether is a different structure...
>
> lets say my page is at org.xyz.util [page.html] and from within it i want to
> refer to an image which is in the images directory...
>
> using
>
> add(new Image("taxCientLogo", new Model("images/company-logo.jpg")));
> add(new Image("taxCientLogo", new Model("/images/company-logo.jpg")));
For images residing in your web app directory, you would use for
instance new ContextImage("img", new
Model("images/company-logo.jpg")); or simply <img
src="images/company-logo.jpg" />
Eelco
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]