You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

To use JSP Tags in FreeMarker template, the following needs to be included in the web.xml

<servlet>
    <servlet-name>jspSupportServlet</servlet-name>
    <servlet-class>com.opensymphony.webwork.views.JspSupportServlet.JspSupportServlet</servlet-class>
    <load-on-startup>10</load-on-startup>
</servlet>

The snippets above, register a JspSupportServlet with the webapp, and requires that the container load it upon startup. It provides access to the servlet instance itself where valuable information like ServletContext could be obtained. This is needed for FreeMarker template rendering that contains JSP tags.

  • No labels