What is your use case?

I need to have absolute URL's for an application and I contribute an
override for the AssetPathConstructor.



2010/9/30 Christian Koller <christian.kol...@net-m.ch>

> Hi all
>
> In a tapestry page i have:
>
> @Inject
> @Property
> @Path("context:/img/logo.gif")
> private Asset logo;
>
> If I print the logo I can see:
> /assets/7f46afe50e4fd75d/ctx/img/logo.gif
>
> What I need is an absolute url from the logo (e.g:
> http://localhost:8080/assets/7f46afe50e4fd75d/ctx/img/logo.gif). Is that
> possible without to use the request.
> I mean is there a better way as to fetch the host and port from the request
> and then to concatenate the stuff.
>
> Thx
> chris
>
>
>


-- 
Jonathan Barker
ITStrategic

Reply via email to