jodd.servlet.tags.imports
Class Import
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
jodd.servlet.tags.imports.Import
- All Implemented Interfaces:
- javax.servlet.jsp.tagext.IterationTag, java.io.Serializable, javax.servlet.jsp.tagext.Tag
- public class Import
- extends javax.servlet.jsp.tagext.TagSupport
Includes local resource into the current page and organize templates. It
can be used for including local content into the current page.
Import tag can be used for managing web templates, macros or tiles,
however it is called. There are 2 different types of usage:
- Without template page. In this case every must have import for each
part of the page that will be loaded. When it is repeated on many pages,
this may become hard to maintain.
- With templates. In this case, template is specified in an external jsp
file that is imported in every page that will use that template. By using
import parameters it is possible to manage included content.
- See Also:
- Serialized Form
Fields inherited from class javax.servlet.jsp.tagext.TagSupport |
id, pageContext |
Fields inherited from interface javax.servlet.jsp.tagext.IterationTag |
EVAL_BODY_AGAIN |
Fields inherited from interface javax.servlet.jsp.tagext.Tag |
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE |
Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
doAfterBody, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setId, setPageContext, setParent, setValue |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Import
public Import()
setPage
public void setPage(java.lang.String v)
getPage
protected java.lang.String getPage()
addAttributeName
public void addAttributeName(java.lang.String s)
doStartTag
public int doStartTag()
- Evaluate tag content.
- Returns:
- EVAL_BODY_INCLUDE
doEndTag
public int doEndTag()
- Finds and renders imported resource. A resource (page) can be specified
relatively (when it doesn't start with a slash) or absolutely from the
application root (when it starts with the slash).
This method will be called after tag process any existing param
parameters.
- Returns:
- EVAL_PAGE
Jodd v0.24.5 Javadoc