21 Apr
2008
21 Apr
'08
4:35 p.m.
Hello, Can somebody tell me how to include a servlet in Xwiki. I came across the following in the macros.vm file: But, I am not very sure as to where do I save the servlet and is #includeServlet("/xwiki/bin/view/Some/Document?params") this the syntax to include a servlet? I mean does this line go into the Xwiki editor? Thanks ## #includeServlet("/xwiki/bin/view/Some/Document?params") ## Invokes on the server another servlet corresponding to the passed URL, and returns the output. ## This is done using standard servlet mechanisms (javax.servlet.RequestDispatcher#include). ## #macro(includeServlet $url) <!-- including $url --> $xwiki.invokeServletAndReturnAsString($url) <!-- included $url --> #end ##