This tag retrieves the specified range of events and tasks into the calendar context. The range is specified using datetime tags with the id attribute; see the datetime tag for details. If an error occurs during processing, the tag body is evaluated and the remainder of the page will be skipped.
JSP
Use either day or both start and end attributes to specify the range of events. If no attributes specified all events for the current day are retrieved.
This tag has the following attributes for which the Required value is “No”:
Specifies an entire day to retrieve.
Specifies the start time of the range to retrieve.
Specifies the end time of the range to retrieve.
None.
<%-- fetch todays events --%> <cal:fetch> ... fetch failed ... </cal:fetch> <%-- fetch events for a day --%> <cal:datetime id="start"/> ... set start time ... <cal:fetch day="start"> ... fetch failed ... </cal:fetch> <%-- fetch events for a range --%> <cal:datetime id="start"/> <cal:datetime id="end"/> ... set start & end times ... <cal:fetch start="start" end="end"> ... fetch failed ... </cal:fetch>