Is there a convenient way to obtain the base url? e.g. http://localhost:8080/xwiki or http://mysite.com -- Glenn
On Fri, Jun 19, 2009 at 2:04 AM, <[email protected]> wrote:
Is there a convenient way to obtain the base url?
maybe there are some better ways but in velocity exposed $xwiki, there are some functions such as getWebAppPath which could help you...
--
Glenn
_______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
I you have programing rights, you can use $context.URLFactory.getServerURL($context.context) from velocity. On Fri, Jun 19, 2009 at 02:04, <[email protected]> wrote:
Is there a convenient way to obtain the base url?
e.g. http://localhost:8080/xwiki or http://mysite.com
--
Glenn
_______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
-- Thomas Mortagne
participants (3)
-
glenn_engel@agilent.com -
Pascal Voitot -
Thomas Mortagne