Sorry ... <c:url is a JSTL tag used in JSPs which takes an absolute url and rewrites it to add the context root and any sessionId's e.g. /images/photo.jpg would become /myapp/photo?jsessionId=xxx
The url should be a static file on the server, alternatively I could point it to a servlet or tapestry page which will retrieve the image from the file system and stream it to the user Toby ----- Original Message ---- From: Josh Canfield <[EMAIL PROTECTED]> To: Tapestry users <users@tapestry.apache.org>; Toby Hobson <[EMAIL PROTECTED]> Sent: Saturday, 3 May, 2008 1:05:52 AM Subject: Re: Dynamic asset I don't know what <c:url /> is. How are you getting the url? what is it supposed to point to? A page? an action? a static file on the server? Josh On Fri, May 2, 2008 at 4:14 PM, Toby Hobson <[EMAIL PROTECTED]> wrote: > Tried that but no luck because it misses the context root ... what i really > need is something like <c:url /> > > Toby > > > ----- Original Message ---- > From: Josh Canfield <[EMAIL PROTECTED]> > To: Tapestry users <users@tapestry.apache.org>; Toby Hobson <[EMAIL > PROTECTED]> > Sent: Friday, 2 May, 2008 11:34:48 PM > Subject: Re: Dynamic asset > > > <img src=${photo.url}" /> but this causes the onActivate(Long) method to > > fall over. > > How are you generating the url? It sounds like it's relative to the > current page, and it should not be. Does <img src="/${photo.url}"/> do > what you want? > > Josh > > On Fri, May 2, 2008 at 2:04 PM, Toby Hobson <[EMAIL PROTECTED]> wrote: > > I am developing a photo sharing application and i would like to display a > > photo whose url is retrieved dynamically. I have a property "photo" on my > > ViewPhoto page and my ViewPhoto.tml is: > > > > <img src=${photo.url}" /> but this causes the onActivate(Long) method to > > fall over. I've also tried <img src="${asset:context:photo.url}" /> but > > this doesn't work because tapestry then looks for a file called photo.url. > > I know I can inject a static asset into my page but how do I handle an > > asset which is determined at runtime? > > > > Thanks > > > > Toby > > > > > > > > -- > -- > TheDailyTube.com. Sign up and get the best new videos on the internet > delivered fresh to your inbox. > > > > -- -- TheDailyTube.com. Sign up and get the best new videos on the internet delivered fresh to your inbox. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]