Package com.jalios.jcms.taglib
Class LinkTag
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.tagext.BodyTagSupport
com.jalios.jcms.taglib.UrlTag
com.jalios.jcms.taglib.LinkTag
- All Implemented Interfaces:
Serializable,javax.servlet.jsp.tagext.BodyTag,javax.servlet.jsp.tagext.IterationTag,javax.servlet.jsp.tagext.JspTag,javax.servlet.jsp.tagext.Tag
Output an href link using the given parameters.
- Since:
- jcms-5.7.0
- Author:
- Olivier Jaquemet
- See Also:
-
Field Summary
Fields inherited from class javax.servlet.jsp.tagext.BodyTagSupport
bodyContentFields inherited from class javax.servlet.jsp.tagext.TagSupport
id, pageContextFields inherited from interface javax.servlet.jsp.tagext.BodyTag
EVAL_BODY_BUFFERED, EVAL_BODY_TAGFields inherited from interface javax.servlet.jsp.tagext.IterationTag
EVAL_BODY_AGAINFields inherited from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintintdoEndTag()intvoidprintDataName(Writer out, Locale locale) Print the data name on the given writer.voidprintLinkEnd(javax.servlet.jsp.JspWriter out) Print closing tag </a>.voidprintLinkStart(javax.servlet.http.HttpServletRequest request, Writer out, Locale locale) Print opening tag <a...voidsetAccessibilityInfo(String accessibilityInfo) voidvoidsetDataAttribute(DataAttribute dataAttribute) voidsetHtmlAttributes(String htmlAttributes) voidMethods inherited from class com.jalios.jcms.taglib.UrlTag
getBaseURL, printUrl, setAnchor, setBaseUrl, setData, setId, setParamNames, setParamRemove, setParams, setParamValues, setUpdateMethods inherited from class javax.servlet.jsp.tagext.BodyTagSupport
doInitBody, getBodyContent, getPreviousOut, release, setBodyContentMethods inherited from class javax.servlet.jsp.tagext.TagSupport
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setPageContext, setParent, setValueMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface javax.servlet.jsp.tagext.Tag
getParent, setPageContext, setParent
-
Constructor Details
-
LinkTag
public LinkTag()
-
-
Method Details
-
setTitle
-
setCss
-
setHtmlAttributes
-
setAccessibilityInfo
-
setDataAttribute
-
printLinkStart
public void printLinkStart(javax.servlet.http.HttpServletRequest request, Writer out, Locale locale) throws Exception Print opening tag <a... href attribute with URL and other attributes.- Parameters:
request- the current HttpServletRequestout- the current JspWriterlocale- the user Locale- Throws:
Exception- Since:
- jcms-5.7.0
-
printDataName
Print the data name on the given writer.- Parameters:
out- the current JspWriterlocale- the user Locale- Throws:
Exception- Since:
- jcms-5.7.0
-
printLinkEnd
Print closing tag </a>.- Parameters:
out- the current JspWriter- Throws:
Exception- Since:
- jcms-5.7.0
-
doStartTag
public int doStartTag() throws javax.servlet.jsp.JspException- Specified by:
doStartTagin interfacejavax.servlet.jsp.tagext.Tag- Overrides:
doStartTagin classUrlTag- Throws:
javax.servlet.jsp.JspException
-
doAfterBody
public int doAfterBody() throws javax.servlet.jsp.JspException- Specified by:
doAfterBodyin interfacejavax.servlet.jsp.tagext.IterationTag- Overrides:
doAfterBodyin classUrlTag- Throws:
javax.servlet.jsp.JspException
-
doEndTag
public int doEndTag() throws javax.servlet.jsp.JspException
-