[xwiki-users] groovy script as xpage
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? Thanks, Honza
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/
participants (2)
-
Jan Kodera -
Sergiu Dumitriu