com.ecyrd.jspwiki.tags
Class ContentTag
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
com.ecyrd.jspwiki.tags.WikiTagBase
com.ecyrd.jspwiki.tags.ContentTag
- All Implemented Interfaces:
- Serializable, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.Tag
public class ContentTag
- extends WikiTagBase
Is used as a "super include" tag, which can include the proper context
based on the wikicontext.
- Since:
- 2.2
- Author:
- Janne Jalkanen
- 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, setParent, setValue |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_JSP_PAGES
public static final String[] DEFAULT_JSP_PAGES
- Lists the default pages for each JSP page. It first contains the
name of the context and then the page which should be included:
public static final String[] DEFAULT_JSP_PAGES = {
WikiContext.VIEW, "PageContent.jsp",
WikiContext.DIFF, "DiffContent.jsp", ...
A Property object is built using TextUtil.createProperties();
- See Also:
TextUtil.createProperties(String[])
ContentTag
public ContentTag()
setView
public void setView(String s)
setDiff
public void setDiff(String s)
setInfo
public void setInfo(String s)
setPreview
public void setPreview(String s)
setConflict
public void setConflict(String s)
setFind
public void setFind(String s)
setPrefs
public void setPrefs(String s)
setError
public void setError(String s)
setEdit
public void setEdit(String s)
setComment
public void setComment(String s)
doWikiStartTag
public final int doWikiStartTag()
throws IOException,
ProviderException
- Description copied from class:
WikiTagBase
- This method is allowed to do pretty much whatever he wants.
We then catch all mistakes.
- Specified by:
doWikiStartTag
in class WikiTagBase
- Throws:
IOException
ProviderException
doEndTag
public final int doEndTag()
throws javax.servlet.jsp.JspException
- Specified by:
doEndTag
in interface javax.servlet.jsp.tagext.Tag
- Overrides:
doEndTag
in class WikiTagBase
- Throws:
javax.servlet.jsp.JspException