Maybe RequestUtils.toAbsolutePath("/images/Image.png") (note leading slash)?

2009/5/17 Martin Makundi <[email protected]>:
> Hi!
>
> I have a dynamic image which resides in
> "http://www.mydomain.com/images/Image.png"; (the filename itself might
> vary). In order for the image to be visible in downloaded documents,
> the path must be absolute.
>
> RequestUtils.toAbsolutePath("images/Imange.png"); works most of the
> time, except in situations where the user is on a bookmarkable page
> that has parameters:
>
> http://www.mydomain.com/BookmarkablePage/Parameter1/Value1/Parameter2/Value2
>
> In such situations the
> RequestUtils.toAbsolutePath("images/Imange.png") returns:
> "http://www.mydomain.com/BookmarkablePage/Parameter1/Value1/Parameter2/Image.png";
>
> So it assumes the last parameter value was a page... is this a stupid
> user bug or a real bug?
>
> **
> Martin
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to