Sun Java System Portal Server Mobile Access 7.1 Tag Library Reference

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 is 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 for which the Required value is “No”:

day

Specifies an entire day to retrieve.

start

Specifies the start time of the range to retrieve.

end

Specifies the end time of the range to retrieve.

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>