Jan Kodera wrote:
> Hi All,
>  i just wondering i cant use groovy when i call page from parameter xpage? I
> mean, when I call something like this
> http://localhost:8080/xwiki/bin/view/Test/?xpage=myPage  the groovy script
> is written like normal text.
> 
> What am i doing wrong? Or I have  missed something?

xpage=mypage only interprets velocity, not groovy. You can achieve that 
with:

xpage=myparsingpage

myparsingpage then calls 
$xwiki.getDocument("mypage").getRenderedContent() or 
$xwiki.parseGroovyFromPage("mypage")

-- 
Sergiu Dumitriu
http://purl.org/net/sergiu/

_______________________________________________
users mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/users

Reply via email to