|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object freemarker.ext.jsp.TaglibFactory
public class TaglibFactory
A hash model associated with a servlet context that can load JSP tag
libraries associated with that servlet context. An instance of this class is
made available in the root data model of templates executed by
FreemarkerServlet
under key
JspTaglibs. It can be added to custom servlets as well to enable JSP
taglib integration in them as well.
Field Summary |
---|
Fields inherited from interface freemarker.template.TemplateModel |
---|
NOTHING |
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
TemplateModel |
get(java.lang.String uri)
Retrieves a JSP tag library identified by an URI. |
boolean |
isEmpty()
Returns false. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TaglibFactory(javax.servlet.ServletContext ctx)
ctx
- the servlet context whose JSP tag libraries will this factory
load.Method Detail |
---|
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 is 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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |