public class Include
extends javax.servlet.jsp.tagext.SimpleTagSupport
resolvingClass
class.
This tag looks for a side JSP file of the given name
from the inheritance hierarchy of the "resolvingClass" class,
and includes the contents of it, just like <jsp:include>.
For example, if the resolvingClass
class is the Foo
class,
which looks like the following:
class Foo extends Bar { ... } class Bar extends Zot { ... }And if you write:
<st:include page="abc.jsp"/>then, it looks for the following files in this order, and includes the first one found.
Foo
class named abc.jsp
(/WEB-INF/Foo/abc.jsp
)
Bar
class named abc.jsp
(/WEB-INF/Bar/abc.jsp
)
Zot
class named abc.jsp
(/WEB-INF/Zot/abc.jsp
)
Constructor and Description |
---|
Include() |
Modifier and Type | Method and Description |
---|---|
void |
doTag() |
void |
setPage(String page)
Specifies the name of the JSP to be included.
|
public void setPage(String page)
page
- page to be included.public void doTag() throws javax.servlet.jsp.JspException, IOException
doTag
in interface javax.servlet.jsp.tagext.SimpleTag
doTag
in class javax.servlet.jsp.tagext.SimpleTagSupport
javax.servlet.jsp.JspException
IOException
Copyright © 2007-2017, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.