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/xwiki/api/Document.html
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

Reply via email to