Hi Robin,
On Oct 3, 2007, at 4:06 PM, Robin François-Xavier wrote:
Thank you very much !
Using :
{code}
$xwiki.getURLContent("http://mycvs.mycompany.com/cvs/MyClass.java")
{code}
It perfectly produces what I wanted.
I have some bad news for you :)
This works in 1.0 but will fail in 1.1.1 since we've now "fixed" the
code macro which escapes everything put into it... We currently have
no way to tell the code macro that it shouldn't escape velocity.
The good news is that there's a workaround and I've published it on
http://www.xwiki.org/xwiki/bin/view/Code/ExternalPrettyCode
-Vincent
-----Message d'origine-----
De : users-bounces(a)xwiki.org [mailto:users-bounces@xwiki.org] De la
part de Vincent Massol
Envoyé : mercredi 3 octobre 2007 15:53
À : XWiki Users
Objet : Re: [xwiki-users] How to include content from HTTP response
Hi,
On Oct 3, 2007, at 3:25 PM, Robin François-Xavier wrote:
Hi,
I've got a CVS repository with a web frontend.
I can access the source codes (java) via URL.
I found the "{code}" macro but it only displays "embedded" code.
How can I include my remote code using HTTP ?
See
http://www.xwiki.org/xwiki/bin/view/DevGuide/APIGuide
(I've started that page for you ;) So feel free to update it with
other useful API you find out)
Thanks
-Vincent
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users