TagLib: Calendar

fetch

Description

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 will be evaluated and the remainder of the page will be skipped.

Tag Body

JSP

Restrictions

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.

Attributes

This tag has the following attributes:

Attribute

Description

Req'd?

day Specifies an entire day to retrieve. No
start Specifies the start time of the range to retrieve. No
end Specifies the end time of the range to retrieve. No

Properties

None.

Example(s)

<%-- 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>