public class TaglibFactory extends java.lang.Object implements TemplateHashModel
FreemarkerServlet
under key
JspTaglibs. It can be added to custom servlets as well to enable JSP
taglib integration in them as well.NOTHING
Constructor and Description |
---|
TaglibFactory(javax.servlet.ServletContext ctx)
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 |
---|---|
TemplateModel |
get(java.lang.String uri)
Retrieves a JSP tag library identified by an URI.
|
boolean |
isEmpty()
Returns false.
|
public TaglibFactory(javax.servlet.ServletContext ctx)
ctx
- the servlet context whose JSP tag libraries will this factory
load.public TemplateModel get(java.lang.String uri) throws TemplateModelException
get
in interface TemplateHashModel
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
HttpRequestHashModel
object 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.TemplateTransformModel
.TemplateModelException
public boolean isEmpty()
isEmpty
in interface TemplateHashModel