public class TaglibFactory extends Object implements TemplateHashModel
FreemarkerServletunder key JspTaglibs. It can be added to custom servlets as well to enable JSP taglib integration in them as well.
|Constructor and Description|
Creates a new JSP taglib factory that will be used to load JSP taglibs for the web application represented by the passed servlet context.
|Modifier and Type||Method and Description|
Retrieves a JSP tag library identified by an URI.
public TaglibFactory(javax.servlet.ServletContext ctx)
ctx- the servlet context whose JSP tag libraries will this factory load.
public TemplateModel get(String uri) throws TemplateModelException
uri- the URI that describes the JSP taglib. It can be any of the three forms allowed by the JSP specification: absolute URI, root relative URI and non-root relative URI. Note that if a non-root relative URI is used it's resolved relative to the URL of the current request. In this case, the current request is obtained by looking up a
HttpRequestHashModelobject named Request in the root data model. FreemarkerServlet provides this object under the expected name, and custom servlets that want to integrate JSP taglib support should do the same.