I'd like to know how you can know the current hostname from a Root Object in Surf.

I'm writting a webscript which serve a JNLP, so I have no page context, and `${url.context}` only returns `/share`.

I'm looking how I can have the hostname `http://foobar.com` or if this is possible at all from server side.

I've been through: <http://wiki.alfresco.com/wiki/Surf_Platform_-_Freemarker_Template_and_JavaScript_API#> without success