Package org.apache.wiki.tags
Class LinkTag
java.lang.Object
jakarta.servlet.jsp.tagext.TagSupport
org.apache.wiki.tags.WikiTagBase
org.apache.wiki.tags.WikiLinkTag
org.apache.wiki.tags.LinkTag
- All Implemented Interfaces:
jakarta.servlet.jsp.tagext.BodyTag,jakarta.servlet.jsp.tagext.IterationTag,jakarta.servlet.jsp.tagext.JspTag,jakarta.servlet.jsp.tagext.Tag,jakarta.servlet.jsp.tagext.TryCatchFinally,Serializable,ParamHandler
public class LinkTag
extends WikiLinkTag
implements ParamHandler, jakarta.servlet.jsp.tagext.BodyTag
Provides a generic link tag for all kinds of linking purposes.
If parameter jsp is defined, constructs a URL pointing to the specified JSP page, under the baseURL known by the Engine. Any ParamTag name-value pairs contained in the body are added to this URL to provide support for arbitrary JSP calls.
- Since:
- 2.3.50
- See Also:
-
Field Summary
Fields inherited from class org.apache.wiki.tags.WikiLinkTag
ANCHOR, m_format, m_pageName, m_template, URLFields inherited from class org.apache.wiki.tags.WikiTagBase
m_wikiContextFields inherited from class jakarta.servlet.jsp.tagext.TagSupport
id, pageContextFields inherited from interface jakarta.servlet.jsp.tagext.BodyTag
EVAL_BODY_BUFFEREDFields inherited from interface jakarta.servlet.jsp.tagext.IterationTag
EVAL_BODY_AGAINFields inherited from interface jakarta.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintdoEndTag()voidintThis method is allowed to do pretty much whatever he wants.voidinitTag()This method is called when the tag is encountered within a new request, but before the setXXX() methods are called.voidsetAccessKey(String key) voidsetBodyContent(jakarta.servlet.jsp.tagext.BodyContent bc) voidvoidsetContainedParameter(String name, String value) Support for ParamTag supplied parameters in body.voidsetContext(String context) voidsetCssClass(String arg) voidvoidvoidvoidvoidsetTabindex(String tabindex) voidvoidsetTemplatefile(String key) voidvoidsetVersion(String arg) Methods inherited from class org.apache.wiki.tags.WikiLinkTag
getPage, getTemplate, setFormat, setPage, setTemplateMethods inherited from class org.apache.wiki.tags.WikiTagBase
doCatch, doFinally, doStartTag, setId, setPageContextMethods inherited from class jakarta.servlet.jsp.tagext.TagSupport
doAfterBody, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setParent, setValueMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface jakarta.servlet.jsp.tagext.IterationTag
doAfterBodyMethods inherited from interface jakarta.servlet.jsp.tagext.Tag
doStartTag, getParent, release, setPageContext, setParent
-
Constructor Details
-
LinkTag
public LinkTag()
-
-
Method Details
-
initTag
Description copied from class:WikiTagBaseThis method is called when the tag is encountered within a new request, but before the setXXX() methods are called. The default implementation does nothing.- Overrides:
initTagin classWikiLinkTag
-
setTemplatefile
-
setAccessKey
-
getVersion
-
setVersion
-
setCssClass
-
setStyle
-
setTitle
-
setTarget
-
setTabindex
-
setCompareToVersion
-
setRel
-
setRef
-
setJsp
-
setContext
-
setContainedParameter
Support for ParamTag supplied parameters in body.- Specified by:
setContainedParameterin interfaceParamHandler
-
doWikiStartTag
Description copied from class:WikiTagBaseThis method is allowed to do pretty much whatever he wants. We then catch all mistakes.- Specified by:
doWikiStartTagin classWikiTagBase- Throws:
Exception
-
doEndTag
- Specified by:
doEndTagin interfacejakarta.servlet.jsp.tagext.Tag- Overrides:
doEndTagin classWikiLinkTag
-
setBodyContent
- Specified by:
setBodyContentin interfacejakarta.servlet.jsp.tagext.BodyTag
-
doInitBody
- Specified by:
doInitBodyin interfacejakarta.servlet.jsp.tagext.BodyTag
-