| 1 |
<%@ taglib uri='struts-bean' prefix='bean' %> |
|---|
| 2 |
<%@ taglib uri='struts-logic' prefix='logic' %> |
|---|
| 3 |
|
|---|
| 4 |
<bean:define id="eventFmt" name="eventFormatter" scope="request" /> |
|---|
| 5 |
<bean:define id="eventInfo" name="eventFmt" property="eventInfo" /> |
|---|
| 6 |
<bean:define id="event" name="eventFmt" property="event" /> |
|---|
| 7 |
<%-- Output a single event --%> |
|---|
| 8 |
<event> |
|---|
| 9 |
<logic:present name="event" property="subscription"> |
|---|
| 10 |
<subscription> |
|---|
| 11 |
<id><bean:write name="eventInfo" property="subscription.id"/></id> |
|---|
| 12 |
<affectsFreeBusy><bean:write name="eventInfo" property="subscription.affectsFreeBusy"/></affectsFreeBusy> |
|---|
| 13 |
<style><bean:write name="eventInfo" property="subscription.style"/></style> |
|---|
| 14 |
</subscription> |
|---|
| 15 |
</logic:present> |
|---|
| 16 |
<logic:notPresent name="event" property="subscription"> |
|---|
| 17 |
<subscription> |
|---|
| 18 |
<id>-1</id> |
|---|
| 19 |
<affectsFreeBusy>false</affectsFreeBusy> |
|---|
| 20 |
<style></style> |
|---|
| 21 |
</subscription> |
|---|
| 22 |
</logic:notPresent> |
|---|
| 23 |
<start><%-- start date and time --%> |
|---|
| 24 |
<bean:define id="date" name="eventFmt" |
|---|
| 25 |
property="start" |
|---|
| 26 |
toScope="request" /> |
|---|
| 27 |
<%@ include file="emitDate.jsp" %> |
|---|
| 28 |
</start> |
|---|
| 29 |
<end><%-- end date and time --%> |
|---|
| 30 |
<bean:define id="date" name="eventFmt" |
|---|
| 31 |
property="end" |
|---|
| 32 |
toScope="request" /> |
|---|
| 33 |
<%@ include file="emitDate.jsp" %> |
|---|
| 34 |
</end> |
|---|
| 35 |
<id><bean:write name="event" property="id"/></id><%-- |
|---|
| 36 |
Value: integer - event id --%> |
|---|
| 37 |
<guid><bean:write name="event" property="guid"/></guid> |
|---|
| 38 |
<logic:present name="event" property="recurrence.recurrenceId"> |
|---|
| 39 |
<recurrenceId><bean:write name="event" property="recurrence.recurrenceId"/></recurrenceId> |
|---|
| 40 |
</logic:present> |
|---|
| 41 |
<logic:notPresent name="event" property="recurrence.recurrenceId"> |
|---|
| 42 |
<recurrenceId></recurrenceId> |
|---|
| 43 |
</logic:notPresent> |
|---|
| 44 |
<summary><bean:write name="event" property="summary"/></summary><%-- |
|---|
| 45 |
<summary><bean:write name="event" property="summary"/></summary><%-- |
|---|
| 46 |
Value: string - short description, typically used for the event title --%> |
|---|
| 47 |
<link><bean:write name="event" property="link"/></link><%-- |
|---|
| 48 |
Value: URI - link associated with the event --%> |
|---|
| 49 |
<public><bean:write name="event" property="publick"/></public> |
|---|
| 50 |
<editable><bean:write name="eventInfo" property="editable"/></editable><%-- |
|---|
| 51 |
Value: true,false - true if user can edit (and delete) event, false otherwise --%> |
|---|
| 52 |
<kind><bean:write name="eventInfo" property="kind"/></kind><%-- |
|---|
| 53 |
Value: 0 - actual event entry |
|---|
| 54 |
1 - 'added event' from a reference |
|---|
| 55 |
2 - from a subscription --%> |
|---|
| 56 |
<recurring><bean:write name="event" property="recurring"/></recurring><%-- |
|---|
| 57 |
Value: true,false - true if the event is recurring --%> |
|---|
| 58 |
<logic:present name="event" property="calendar"> |
|---|
| 59 |
<bean:define id="calendar" name="event" property="calendar"/> |
|---|
| 60 |
<calendar> |
|---|
| 61 |
<name><bean:write name="calendar" property="name"/></name><%-- |
|---|
| 62 |
Value: string - name of the calendar --%> |
|---|
| 63 |
<path><bean:write name="calendar" property="path"/></path><%-- |
|---|
| 64 |
Value: path to the calendar --%> |
|---|
| 65 |
<id><bean:write name="calendar" property="id"/></id><%-- |
|---|
| 66 |
Value: integer - calendar id --%> |
|---|
| 67 |
<owner><bean:write name="calendar" property="owner.account"/></owner><%-- |
|---|
| 68 |
Value: string - calendar owner id --%> |
|---|
| 69 |
</calendar> |
|---|
| 70 |
</logic:present> |
|---|
| 71 |
<logic:notPresent name="event" property="calendar"> |
|---|
| 72 |
<calendar> |
|---|
| 73 |
<name></name> |
|---|
| 74 |
<path></path> |
|---|
| 75 |
<id></id><%-- |
|---|
| 76 |
Value: integer - calendar id --%> |
|---|
| 77 |
<owner></owner><%-- |
|---|
| 78 |
Value: string - calendar owner id --%> |
|---|
| 79 |
</calendar> |
|---|
| 80 |
</logic:notPresent> |
|---|
| 81 |
<logic:present name="event" property="location"> |
|---|
| 82 |
<bean:define id="location" name="event" property="location"/> |
|---|
| 83 |
<location> |
|---|
| 84 |
<id><bean:write name="location" property="id"/></id><%-- |
|---|
| 85 |
Value: integer - location id --%> |
|---|
| 86 |
<address><bean:write name="location" property="address"/></address><%-- |
|---|
| 87 |
Value: string - physical address of the location --%> |
|---|
| 88 |
<link><bean:write name="location" property="link"/></link><%-- |
|---|
| 89 |
Value: URI - link to a web address for the location --%> |
|---|
| 90 |
<logic:present name="detailView" scope="request"><%-- |
|---|
| 91 |
Only output these attributes if we are in detailed mode... --%> |
|---|
| 92 |
<subaddress><bean:write name="location" property="subaddress"/></subaddress><%-- |
|---|
| 93 |
Value: string - more address information --%> |
|---|
| 94 |
<creator><bean:write name="location" property="creator.account"/></creator><%-- |
|---|
| 95 |
Value: string - location creator id --%> |
|---|
| 96 |
</logic:present> |
|---|
| 97 |
</location> |
|---|
| 98 |
</logic:present> |
|---|
| 99 |
<logic:notPresent name="event" property="location"> |
|---|
| 100 |
<location> |
|---|
| 101 |
<address></address> |
|---|
| 102 |
<logic:present name="detailView" scope="request"><%-- |
|---|
| 103 |
Only output these attributes if we are in detailed mode... --%> |
|---|
| 104 |
<id></id><%-- |
|---|
| 105 |
Value: integer - location id --%> |
|---|
| 106 |
<subaddress></subaddress><%-- |
|---|
| 107 |
Value: string - more address information --%> |
|---|
| 108 |
<link></link><%-- |
|---|
| 109 |
Value: URI - link to a web address for the location --%> |
|---|
| 110 |
<creator></creator><%-- |
|---|
| 111 |
Value: string - location creator id --%> |
|---|
| 112 |
</logic:present> |
|---|
| 113 |
</location> |
|---|
| 114 |
</logic:notPresent> |
|---|
| 115 |
<categories> |
|---|
| 116 |
<logic:present name="event" property="categories"> |
|---|
| 117 |
<logic:iterate id="category" name="event" property="categories"> |
|---|
| 118 |
<category> |
|---|
| 119 |
<id><bean:write name="category" property="id"/></id><%-- |
|---|
| 120 |
Value: integer - category id --%> |
|---|
| 121 |
<value><bean:write name="category" property="word"/></value><%-- |
|---|
| 122 |
Value: string - the category value --%> |
|---|
| 123 |
<logic:present name="detailView" scope="request"><%-- |
|---|
| 124 |
Only output these attributes if we are in detailed mode... --%> |
|---|
| 125 |
<description><bean:write name="category" property="description"/></description><%-- |
|---|
| 126 |
Value: string - long description of category --%> |
|---|
| 127 |
<creator><bean:write name="category" property="creator.account"/></creator><%-- |
|---|
| 128 |
Value: string - category creator id --%> |
|---|
| 129 |
</logic:present> |
|---|
| 130 |
</category> |
|---|
| 131 |
</logic:iterate> |
|---|
| 132 |
</logic:present> |
|---|
| 133 |
</categories> |
|---|
| 134 |
<logic:present name="detailView" scope="request"><%-- |
|---|
| 135 |
Only output these attributes if we are in detailed mode... --%> |
|---|
| 136 |
<description><bean:write name="event" property="description"/></description><%-- |
|---|
| 137 |
Value: string - long description of the event. Limited to 500 characters. --%> |
|---|
| 138 |
<cost><bean:write name="event" property="cost"/></cost><%-- |
|---|
| 139 |
Value: string - cost information --%> |
|---|
| 140 |
<sequence><bean:write name="event" property="sequence"/></sequence><%-- |
|---|
| 141 |
RFC sequence number for the event --%> |
|---|
| 142 |
|
|---|
| 143 |
<logic:present name="event" property="sponsor"> |
|---|
| 144 |
<bean:define id="sponsor" name="event" property="sponsor"/> |
|---|
| 145 |
<sponsor> |
|---|
| 146 |
<id><bean:write name="sponsor" property="id"/></id><%-- |
|---|
| 147 |
Value: integer - sponsor id --%> |
|---|
| 148 |
<name><bean:write name="sponsor" property="name"/></name><%-- |
|---|
| 149 |
Value: string - sponsor's name --%> |
|---|
| 150 |
<phone><bean:write name="sponsor" property="phone"/></phone><%-- |
|---|
| 151 |
Value (example): x7777 - sponsor's phone number --%> |
|---|
| 152 |
<email><bean:write name="sponsor" property="email"/></email><%-- |
|---|
| 153 |
Value (example): nobody@nowhere.edu - sponsor's email address --%> |
|---|
| 154 |
<link><bean:write name="sponsor" property="link"/></link><%-- |
|---|
| 155 |
Value: URI - link to sponsor web page --%> |
|---|
| 156 |
</sponsor> |
|---|
| 157 |
</logic:present> |
|---|
| 158 |
</logic:present> |
|---|
| 159 |
</event> |
|---|