IncludeServlet Macro

This is a Velocity macro, bundled with all the XWiki products by default.
Macro developed by the XWiki Development Team.
This macro cannot currently be downloaded separately.

IncludeServlet Macro

Includes dynamic content such as Servlets or JSPs inside an XWiki page.

Usage

#includeServlet($url)

Parameters definition

NameOptionalAllowed valuesDefault valueDescription
urlnoa stringnoneURL of the servlet or JSP page

Example

Let's say you have a legacy pagefooter that needs to be included in an XWiki page:

#includeServlet("/jsp/pagefooter.jsp")

For this to work a jsp servlet must be correctly declared and configured in XWiki's web.xml file.

Tags:
Created by LuisArias on 2007/04/08 13:59
Last modified by Vincent Massol on 2008/09/30 10:10

This wiki is licensed under a Creative Commons license
2.2.1.27354