com.ecyrd.jspwiki.tags
Class ContentTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by com.ecyrd.jspwiki.tags.WikiTagBase
          extended by 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

Field Summary
static String[] DEFAULT_JSP_PAGES
          Lists the default pages for each JSP page.
 
Fields inherited from class com.ecyrd.jspwiki.tags.WikiTagBase
ATTR_CONTEXT, m_wikiContext
 
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
 
Constructor Summary
ContentTag()
           
 
Method Summary
 int doEndTag()
           
 int doWikiStartTag()
          This method is allowed to do pretty much whatever he wants.
 void setComment(String s)
           
 void setConflict(String s)
           
 void setDiff(String s)
           
 void setEdit(String s)
           
 void setError(String s)
           
 void setFind(String s)
           
 void setInfo(String s)
           
 void setPrefs(String s)
           
 void setPreview(String s)
           
 void setView(String s)
           
 
Methods inherited from class com.ecyrd.jspwiki.tags.WikiTagBase
doStartTag, initTag, setPageContext
 
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
 

Field Detail

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[])
Constructor Detail

ContentTag

public ContentTag()
Method Detail

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