Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment:

Update formatting

To use JSP Tags in with our FreeMarker templatetemplates, the following jspSupportServlet needs to be included in loaded through the web.xml.

Code Block
xml
titleweb.xml
<servlet>
    <servlet-name>jspSupportServlet</servletserlet-name>
    <servlet-class>comclass>org.apache.opensymphonystruts.webworkaction2.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 tagsservlet element registers the JspSupportServlet and loads it on startup. FreeMarker obtains the information it needs to render JSP tags from the servlet instance.