Class CalendarEntryTag
java.lang.Object
jakarta.servlet.jsp.tagext.TagSupport
org.deltava.taglib.calendar.CalendarEntryTag
- All Implemented Interfaces:
jakarta.servlet.jsp.tagext.IterationTag, jakarta.servlet.jsp.tagext.JspTag, jakarta.servlet.jsp.tagext.Tag, Serializable
public class CalendarEntryTag
extends jakarta.servlet.jsp.tagext.TagSupport
A JSP tag to save Calendar entries to the request context for rendering to a JSP.
- Since:
- 1.0
- Version:
- 7.0
- Author:
- Luke
- See Also:
-
Field Summary
Fields inherited from class jakarta.servlet.jsp.tagext.TagSupport
id, pageContextFields 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 TypeMethodDescriptionintChecks if there are further entries for the current date, and saves the next entry into the request.intRenders the entries for the current date and saves the current entry into the request.(package private) booleanReturns whether there are further Calendar entries to display.voidSets the name of the request attribute to save the Calendar Entry into.Methods inherited from class jakarta.servlet.jsp.tagext.TagSupport
doEndTag, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setId, setPageContext, setParent, setValue
-
Constructor Details
-
CalendarEntryTag
public CalendarEntryTag()
-
-
Method Details
-
setName
Sets the name of the request attribute to save the Calendar Entry into.- Parameters:
attrName- the request attribute name
-
hasMoreEntries
boolean hasMoreEntries()Returns whether there are further Calendar entries to display.- Returns:
- TRUE if there are more entries, otherwise FALSE
-
doStartTag
public int doStartTag() throws jakarta.servlet.jsp.JspExceptionRenders the entries for the current date and saves the current entry into the request.- Specified by:
doStartTagin interfacejakarta.servlet.jsp.tagext.Tag- Overrides:
doStartTagin classjakarta.servlet.jsp.tagext.TagSupport- Returns:
- TagSupport#SKIP_BODY if no entries for today, otherwise TagSupport#EVAL_BODY_INCLUDE
- Throws:
jakarta.servlet.jsp.JspException- if not contained within aCalendarTag
-
doAfterBody
public int doAfterBody() throws jakarta.servlet.jsp.JspExceptionChecks if there are further entries for the current date, and saves the next entry into the request.- Specified by:
doAfterBodyin interfacejakarta.servlet.jsp.tagext.IterationTag- Overrides:
doAfterBodyin classjakarta.servlet.jsp.tagext.TagSupport- Returns:
- TagSupport#SKIP_BODY if no more entries for today, otherwise TagSupport#EVAL_BODY_INCLUDE
- Throws:
jakarta.servlet.jsp.JspException- never
-