[xwiki-devs] XWiki - Browser full URL in xwiki page
Hi, How can i print the current browser full URL in xwiki page. I tired this one $doc.getURL("view"), but it displaying the url from the application name like this */xwiki/bin/view/Main/ *Is there any other way to print the whole browser URL in xwiki page like this* http://<server>:<port>/xwiki/bin/view/Main/ *-- Prathap* *
Prathap Pandian wrote:
Hi,
How can i print the current browser full URL in xwiki page.
I tired this one $doc.getURL("view"), but it displaying the url from the application name like this */xwiki/bin/view/Main/
*Is there any other way to print the whole browser URL in xwiki page like this* http://<server>:<port>/xwiki/bin/view/Main/
$doc.getExternalURL() -- Sergiu Dumitriu http://purl.org/net/sergiu/
Hi, On Tue, Jul 8, 2008 at 9:13 AM, Prathap Pandian <[email protected]> wrote:
Hi,
How can i print the current browser full URL in xwiki page.
I tired this one $doc.getURL("view"), but it displaying the url from the application name like this */xwiki/bin/view/Main/
*Is there any other way to print the whole browser URL in xwiki page like this* http://<server>:<port>/xwiki/bin/view/Main/
You can look at API documentation to have a full list of methods : http://maven.xwiki.org/site/xwiki-core-parent/xwiki-core/apidocs/index.html In you case it's com.xpn.xwiki.api Document api at http://maven.xwiki.org/site/xwiki-core-parent/xwiki-core/apidocs/com/xpn/xwi... It contains getExternalURL with different parameters returning the full URL. To get the full name of the class of the object to are using simply print .class : $doc.class will print "class com.xpn.xwiki.api.Document".
*-- Prathap* * _______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
-- Thomas Mortagne
thanks -- Prathap On Tue, Jul 8, 2008 at 2:12 PM, Thomas Mortagne <[email protected]> wrote:
Hi,
On Tue, Jul 8, 2008 at 9:13 AM, Prathap Pandian <[email protected]> wrote:
Hi,
How can i print the current browser full URL in xwiki page.
I tired this one $doc.getURL("view"), but it displaying the url from the application name like this */xwiki/bin/view/Main/
*Is there any other way to print the whole browser URL in xwiki page like this* http://<server>:<port>/xwiki/bin/view/Main/
You can look at API documentation to have a full list of methods : http://maven.xwiki.org/site/xwiki-core-parent/xwiki-core/apidocs/index.html
In you case it's com.xpn.xwiki.api Document api at
http://maven.xwiki.org/site/xwiki-core-parent/xwiki-core/apidocs/com/xpn/xwi... It contains getExternalURL with different parameters returning the full URL.
To get the full name of the class of the object to are using simply print .class : $doc.class will print "class com.xpn.xwiki.api.Document".
*-- Prathap* * _______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
-- Thomas Mortagne _______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
participants (3)
-
Prathap Pandian -
Sergiu Dumitriu -
Thomas Mortagne