root/trunk/calendar3/webclient/war/WEB-INF/struts-config.xml

Revision 312 (checked in by douglm, 7 years ago)

A number of webclient changes

1. Move events related jsp into docs/event
2. Split out common/short/detailed/all event fields
3. Emit more xml, organizer and attendees
4. Add taglib component to webcommon and add tag to emit tagged xml

Line 
1 <?xml version="1.0" encoding="ISO-8859-1" ?>
2
3 <!DOCTYPE struts-config PUBLIC
4           "-//Apache Software Foundation//DTD Struts Configuration 1.2//EN"
5           "http://jakarta.apache.org/struts/dtds/struts-config_1_2.dtd">
6
7   <!-- ====================================================================
8      This is a the Struts configuration for the uwcal client.
9      ====================================================================== -->
10
11 <struts-config>
12   <!-- ========== Form Bean Definitions =================================== -->
13   <form-beans>
14     <form-bean      name="calForm"
15                     type="org.bedework.webclient.BwActionForm"/>
16   </form-beans>
17
18   <!-- ========== Global Forward Definitions ============================== -->
19   <global-forwards>
20     <!-- render forwards -->
21     <forward name="initialise" path="/initialise.rdo"/>
22     <forward name="showCals" path="/showCals.rdo"/>
23     <forward name="showManageLocations" path="/showManageLocations.rdo"/>
24     <forward name="showEditLocation" path="/showEditLocation.rdo"/>
25     <forward name="showEditEvent" path="/showEditEvent.rdo"/>
26     <forward name="eventMore" path="/showEventMore.rdo"/>
27     <forward name="initUpload" path="/initUpload.rdo"/>
28
29     <!-- Forward for a new session from some bookmarked link? -->
30     <forward name="gotomain" path="/docs/main.jsp" />
31
32     <forward name="initial" path="/setup.do"/>
33
34     <forward name="doNothing" path="/showMain.rdo" redirect="true" />
35     <forward name="error" path="/showMain.rdo" redirect="true" />
36     <forward name="success" path="/showMain.rdo" redirect="true" />
37     <forward name="cancelled" path="/showMain.rdo" redirect="true" />
38   </global-forwards>
39
40   <!-- ========== Action Mapping Definitions ============================== -->
41   <action-mappings>
42
43     <!-- ===============================================================
44          Render actions - these should be referenced by the rdo suffix to
45          invoke the xslt filter
46          =============================================================== -->
47
48          <!--
49     <action    path="/showMain"
50                name="calForm"
51                scope="session"
52                validate="false"
53                include="/docs/main.jsp"/>
54 -->
55     <action    path="/showMain"
56                type="org.bedework.webclient.BwRenderAction"
57                name="calForm"
58                scope="session"
59                validate="false">
60       <forward name="success" path="/docs/main.jsp"/>
61     </action>
62
63     <action    path="/showPublicCals"
64                type="org.bedework.webclient.BwRenderAction"
65                name="calForm"
66                scope="session"
67                validate="false">
68       <forward name="success" path="/docs/emitPublicCalendars.jsp" />
69     </action>
70
71     <action    path="/showCals"
72                type="org.bedework.webclient.BwRenderAction"
73                name="calForm"
74                scope="session"
75                validate="false">
76       <forward name="success" path="/docs/emitCalendars.jsp" />
77     </action>
78
79     <action    path="/showEventMore"
80                type="org.bedework.webclient.BwRenderAction"
81                name="calForm"
82                scope="session"
83                validate="false">
84       <forward name="success" path="/docs/event/eventMore.jsp" />
85     </action>
86
87    <action    path="/showAddEvent"
88                type="org.bedework.webclient.BwRenderAction"
89                name="calForm"
90                scope="session"
91                validate="false">
92       <forward name="success" path="/docs/event/addEvent.jsp" />
93     </action>
94
95     <action    path="/showEditEvent"
96                type="org.bedework.webclient.BwRenderAction"
97                name="calForm"
98                scope="session"
99                validate="false">
100       <forward name="success" path="/docs/event/editEvent.jsp" />
101     </action>
102
103     <action    path="/showEditLocation"
104                type="org.bedework.webclient.BwRenderAction"
105                name="calForm"
106                scope="session"
107                validate="false">
108       <forward name="success" path="/docs/editLocation.jsp" />
109     </action>
110
111     <action    path="/showExportData"
112                type="org.bedework.webclient.BwRenderAction"
113                name="calForm"
114                scope="session"
115                validate="false">
116       <forward name="success" path="/docs/exportData.jsp" />
117     </action>
118
119     <action    path="/showFreeBusy"
120                type="org.bedework.webclient.BwRenderAction"
121                name="calForm"
122                scope="session"
123                validate="false">
124       <forward name="success" path="/docs/freeBusy.jsp" />
125     </action>
126
127     <action    path="/showManageLocations"
128                type="org.bedework.webclient.BwRenderAction"
129                name="calForm"
130                scope="session"
131                validate="false">
132       <forward name="success" path="/docs/manageLocations.jsp" />
133     </action>
134
135     <action    path="/showEmailOptions"
136                type="org.bedework.webclient.BwRenderAction"
137                name="calForm"
138                scope="session"
139                validate="false">
140       <forward name="success" path="/docs/emailOptions.jsp" />
141     </action>
142
143     <action    path="/showAlarmOptions"
144                type="org.bedework.webclient.BwRenderAction"
145                name="calForm"
146                scope="session"
147                validate="false">
148       <forward name="success" path="/docs/alarmOptions.jsp" />
149     </action>
150
151     <action    path="/initUpload"
152                type="org.bedework.webclient.BwRenderAction"
153                name="calForm"
154                scope="session"
155                validate="false">
156       <forward name="success" path="/docs/upload.jsp" />
157     </action>
158
159     <action    path="/initialise"
160                type="org.bedework.webclient.BwRenderAction"
161                name="calForm"
162                scope="session"
163                validate="false">
164       <forward name="success" path="/docs/main.jsp" />
165       <forward name="loggedOut" path="/docs/login/logout.html" />
166     </action>
167
168     <!-- ===============================================================
169          These actions do not render - these should be referenced by the do
170          suffix and should redirect to a render action.
171          =============================================================== -->
172
173     <action    path="/setup"
174                type="org.bedework.webclient.BwAction"
175                name="calForm"
176                scope="session"
177                validate="false">
178       <forward name="loggedOut" path="/docs/login/logout.html" />
179     </action>
180
181     <action    path="/fetchPublicCalendars"
182                type="org.bedework.webclient.BwAction"
183                name="calForm"
184                scope="session"
185                validate="false">
186       <forward name="success" path="/showPublicCals.rdo" redirect="true" />
187     </action>
188
189     <action    path="/fetchCalendars"
190                type="org.bedework.webclient.BwAction"
191                name="calForm"
192                scope="session"
193                validate="false">
194       <forward name="success" path="/showCals.rdo" redirect="true" />
195     </action>
196
197     <action    path="/setSelection"
198                type="org.bedework.webcommon.misc.SetSelectionAction"
199                name="calForm"
200                scope="session"
201                validate="false">
202       <forward name="notFound" path="/showMain.rdo" redirect="true" />
203       <forward name="noViewDef" path="/showMain.rdo" redirect="true" />
204     </action>
205
206     <action    path="/setViewPeriod"
207                type="org.bedework.webclient.BwGoToAction"
208                name="calForm"
209                scope="session"
210                validate="false">
211     </action>
212
213     <action    path="/eventView"
214                type="org.bedework.webclient.BwEventAction"
215                name="calForm"
216                scope="session"
217                validate="false">
218       <forward name="success" path="/showEventMore.rdo" redirect="true" />
219     </action>
220
221     <!-- The following action is used for adding events from a form on the main
222          personal calandar page (a la Washington); on error or success, we return to the
223          main.jsp page. -->
224     <action    path="/addEvent"
225                type="org.bedework.webclient.BwAddEventAction"
226                name="calForm"
227                scope="session"
228                validate="false">
229     </action>
230
231     <!-- The following 2 actions are used for adding events from an "add event" page
232          (a la Demo, Rensselaer); on error, we return to the
233          addEvent.jsp page. -->
234     <action    path="/initEvent"
235                type="org.bedework.webclient.BwAction"
236                name="calForm"
237                scope="session"
238                validate="false">
239       <forward name="success" path="/showAddEvent.rdo" redirect="true" />
240     </action>
241
242     <action    path="/addEventUsingPage"
243                type="org.bedework.webclient.BwAddEventAction"
244                name="calForm"
245                scope="session"
246                validate="false">
247       <forward name="error" path="/showAddEvent.rdo" redirect="true" />
248       <forward name="doNothing" path="/showAddEvent.rdo" redirect="true" />
249     </action>
250
251     <action    path="/editEvent"
252                type="org.bedework.webclient.BwEditEventAction"
253                name="calForm"
254                scope="session"
255                validate="false">
256       <forward name="edit" path="/showEditEvent.rdo" redirect="true" />
257     </action>
258
259     <action    path="/delEvent"
260                type="org.bedework.webclient.BwDelEventAction"
261                name="calForm"
262                scope="session"
263                validate="false">
264     </action>
265
266     <action    path="/addEventRef"
267                type="org.bedework.webclient.BwAddEventRefAction"
268                name="calForm"
269                scope="session"
270                validate="false">
271     </action>
272
273     <action    path="/upload"
274                type="org.bedework.webcommon.misc.UploadAction"
275                name="calForm"
276                scope="session"
277                validate="false">
278     <forward name="baddata" path="/showMain.rdo" redirect="true" />
279     </action>
280
281     <action    path="/export"
282                type="org.bedework.webcommon.misc.ExportAction"
283                name="calForm"
284                scope="session"
285                validate="false">
286       <forward name="success" path="/showExportData.rdo" redirect="true" />
287     </action>
288
289     <action    path="/showPage"
290                type="org.bedework.webclient.BwAction"
291                name="calForm"
292                scope="session"
293                validate="false">
294       <forward name="success" path="/docs/showPage.jsp" />
295     </action>
296
297     <action    path="/getFreeBusy"
298                type="org.bedework.webclient.BwFreeBusyAction"
299                name="calForm"
300                scope="session"
301                validate="false">
302       <forward name="success" path="/showFreeBusy.rdo" redirect="true" />
303     </action>
304
305     <action    path="/setAccess"
306                type="org.bedework.webclient.BwAccessAction"
307                name="calForm"
308                scope="session"
309                validate="false">
310     </action>
311
312     <action    path="/manageLocations"
313                type="org.bedework.webclient.BwAction"
314                name="calForm"
315                scope="session"
316                validate="false">
317       <forward name="success" path="/showManageLocations.rdo" redirect="true" />
318     </action>
319
320     <action    path="/addLocation"
321                type="org.bedework.webclient.BwAddLocationAction"
322                name="calForm"
323                scope="session"
324                validate="false">
325       <forward name="success" path="/showManageLocations.rdo" redirect="true" />
326     </action>
327
328     <action    path="/editLoc"
329                type="org.bedework.webclient.BwEditLocationAction"
330                name="calForm"
331                scope="session"
332                validate="false">
333       <forward name="edit" path="/showEditLocation.rdo" redirect="true" />
334       <forward name="success" path="/showManageLocations.rdo" redirect="true" />
335     </action>
336
337     <action    path="/delLocation"
338                type="org.bedework.webclient.BwDelLocationAction"
339                name="calForm"
340                scope="session"
341                validate="false">
342       <forward name="referenced" path="/showManageLocations.rdo" redirect="true" />
343       <forward name="success" path="/showManageLocations.rdo" redirect="true" />
344     </action>
345
346     <!-- ....................... system stats .......................... -->
347
348     <action    path="/showStats"
349                type="org.bedework.webclient.BwRenderAction"
350                name="calForm"
351                scope="session"
352                validate="false">
353       <forward name="success" path="/docs/showSysStats.jsp" />
354     </action>
355
356     <action    path="/stats"
357                type="org.bedework.webcommon.misc.StatisticsAction"
358                name="calForm"
359                scope="session"
360                validate="false">
361       <forward name="continue"  path="/showStats.rdo" redirect="true" />
362       <forward name="success"  path="/showStats.rdo" redirect="true" />
363     </action>
364
365     <!-- ....................... mailing events ........................ -->
366
367     <action    path="/initMailEvent"
368                type="org.bedework.webclient.BwFetchEventAction"
369                name="calForm"
370                scope="session"
371                validate="false">
372       <forward name="notFound" path="/showMain.rdo" redirect="true" />
373       <forward name="success" path="/showEmailOptions.rdo" redirect="true" />
374     </action>
375
376     <action    path="/mailEvent"
377                type="org.bedework.webclient.BwMailEventAction"
378                name="calForm"
379                scope="session"
380                validate="false">
381       <forward name="noEvent" path="/showMain.rdo" redirect="true" />
382       <forward name="retry" path="/showEmailOptions.rdo" redirect="true" />
383       <forward name="success" path="/showMain.rdo" redirect="true" />
384     </action>
385
386     <!-- ....................... event alarms .......................... -->
387
388     <action    path="/initEventAlarm"
389                type="org.bedework.webclient.BwFetchEventAction"
390                name="calForm"
391                scope="session"
392                validate="false">
393       <forward name="notFound" path="/showMain.rdo" redirect="true" />
394       <forward name="success" path="/showAlarmOptions.rdo" redirect="true" />
395     </action>
396
397     <action    path="/setAlarm"
398                type="org.bedework.webclient.BwSetAlarmAction"
399                name="calForm"
400                scope="session"
401                validate="false">
402       <forward name="noEvent" path="/showMain.rdo" redirect="true" />
403       <forward name="retry" path="/showAlarmOptions.rdo" redirect="true" />
404       <forward name="success" path="/showMain.rdo" redirect="true" />
405     </action>
406
407     <!-- ..................... subscriptionss .......................... -->
408
409     <action    path="/subscribe"
410                type="org.bedework.webcommon.subs.SubscribeAction"
411                name="calForm"
412                scope="session"
413                validate="false">
414     </action>
415
416     <action    path="/unsubscribe"
417                type="org.bedework.webcommon.subs.UnsubscribeAction"
418                name="calForm"
419                scope="session"
420                validate="false">
421     </action>
422
423     <!-- ......................... views .............................. -->
424
425     <action    path="/addView"
426                type="org.bedework.webcommon.views.AddViewAction"
427                name="calForm"
428                scope="session"
429                validate="false">
430     </action>
431
432     <action    path="/removeView"
433                type="org.bedework.webcommon.views.DeleteViewAction"
434                name="calForm"
435                scope="session"
436                validate="false">
437     </action>
438   </action-mappings>
439 <!--               unknown="true" -->
440
441   <!-- Below will be one or more comments which must not be edited or removed
442        for the portlet build process to succeed. The comment will be replaced
443         by some extra cofiguration.
444        -->
445
446   <!-- Jetspeed2 controller def here -->
447
448   <message-resources parameter="servlet" null="true" />
449
450 </struts-config>
Note: See TracBrowser for help on using the browser.