Class FreemarkerRequestDispatcherPageFilter

java.lang.Object
com.opensymphony.sitemesh.webapp.SiteMeshFilter
org.apache.struts2.sitemesh.FreemarkerPageFilter
com.atlassian.bamboo.ww2.FreemarkerRequestDispatcherPageFilter
All Implemented Interfaces:
jakarta.servlet.Filter

public class FreemarkerRequestDispatcherPageFilter extends org.apache.struts2.sitemesh.FreemarkerPageFilter
A filter that works like FreemarkerPageFilter but it delegates back to a request dispatcher if the template is not found
  • Field Details

  • Constructor Details

    • FreemarkerRequestDispatcherPageFilter

      public FreemarkerRequestDispatcherPageFilter()
  • Method Details

    • init

      public void init(jakarta.servlet.FilterConfig filterConfig)
      Specified by:
      init in interface jakarta.servlet.Filter
      Overrides:
      init in class org.apache.struts2.sitemesh.FreemarkerPageFilter
    • initDecoratorSelector

      protected com.opensymphony.sitemesh.DecoratorSelector initDecoratorSelector(com.opensymphony.sitemesh.webapp.SiteMeshWebAppContext webAppContext)
      Overrides:
      initDecoratorSelector in class org.apache.struts2.sitemesh.FreemarkerPageFilter
    • applyDecorator

      protected void applyDecorator(com.opensymphony.module.sitemesh.Page page, com.opensymphony.module.sitemesh.Decorator decorator, jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse res, jakarta.servlet.ServletContext servletContext, org.apache.struts2.ActionContext ctx) throws jakarta.servlet.ServletException, IOException
      Throws:
      jakarta.servlet.ServletException
      IOException
    • getLocale

      protected Locale getLocale(org.apache.struts2.ActionInvocation invocation, freemarker.template.Configuration configuration)
      Returns the locale used for the Configuration.getTemplate(String, Locale) call. The base implementation simply returns the locale setting of the action (assuming the action implements LocaleProvider) or, if the action does not the configuration's locale is returned. Override this method to provide different behaviour,
    • setFreemarkerManager

      public static void setFreemarkerManager(org.apache.struts2.views.freemarker.FreemarkerManager mgr)