Have you looked into BaseURLSource?
http://tapestry.apache.org/tapestry5/apidocs/org/apache/tapestry5/services/BaseURLSource.html

Overriding it is documented along with https but you can @Inject and
use it elsewhere.
http://tapestry.apache.org/tapestry5/guide/secure.html

Josh

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
>
>
>



-- 
--
http://www.bodylabgym.com - a private, by appointment only, one-on-one
health and fitness facility.
--
http://www.ectransition.com - Quality Electronic Cigarettes at a
reasonable price!
--
TheDailyTube.com. Sign up and get the best new videos on the internet
delivered fresh to your inbox.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to