1
<!DOCTYPE xwork PUBLIC "-//OpenSymphony Group//XWork 1.0//EN"
2
"http://www.opensymphony.com/xwork/xwork-1.0.dtd">
4
<include file="dhis-support-webwork.xml"/>
6
<!-- DHIS Web Commons -->
8
<package name="dhis-web-commons" extends="dhis-support-webwork" namespace="/dhis-web-commons">
11
<interceptor name="portalParamsInterceptor"
12
class="org.hisp.dhis.webportal.interceptor.WebWorkPortalParamsInterceptor"/>
13
<interceptor name="portalModuleInterceptor"
14
class="org.hisp.dhis.webportal.interceptor.WebWorkPortalModuleInterceptor"/>
15
<interceptor name="portalMenuInterceptor"
16
class="org.hisp.dhis.webportal.interceptor.WebWorkPortalMenuInterceptor"/>
17
<interceptor name="organisationUnitTreeInterceptor"
18
class="org.hisp.dhis.ouwt.interceptor.OrganisationUnitTreeInterceptor"/>
19
<interceptor name="portalUserInterceptor"
20
class="org.hisp.dhis.webportal.interceptor.WebWorkPortalUserInterceptor"/>
21
<interceptor name="securityInterceptor"
22
class="org.hisp.dhis.security.intercept.WebWorkSecurityInterceptor"/>
23
<interceptor name="execAndWait"
24
class="org.hisp.dhis.hibernate.interceptor.OpenSessionExecuteAndWaitInterceptor"/>
26
<interceptor-stack name="commonInterceptors">
27
<interceptor-ref name="static-params"/>
28
<interceptor-ref name="params"/>
29
<interceptor-ref name="chain"/>
30
<interceptor-ref name="i18nInterceptor"/>
32
The securityInterceptor is put after the i18nInterceptor so that the
33
access denied error pages can use internationalisation.
35
<interceptor-ref name="securityInterceptor"/>
36
<interceptor-ref name="sortOrderInterceptor"/>
37
<interceptor-ref name="displayPropertyInterceptor"/>
38
<interceptor-ref name="dataDictionaryModeInterceptor"/>
39
<interceptor-ref name="systemSettingInterceptor"/>
40
<interceptor-ref name="styleInterceptor"/>
41
<interceptor-ref name="portalParamsInterceptor"/>
42
<interceptor-ref name="portalMenuInterceptor"/>
43
<interceptor-ref name="portalModuleInterceptor"/>
44
<interceptor-ref name="portalUserInterceptor"/>
47
<interceptor-stack name="exceptionStack">
48
<interceptor-ref name="exceptionInterceptor"/>
49
<interceptor-ref name="commonInterceptors"/>
52
<interceptor-stack name="transactionStack">
53
<interceptor-ref name="exceptionStack"/>
54
<interceptor-ref name="transactionInterceptor"/>
57
<interceptor-stack name="fileUploadStack">
58
<interceptor-ref name="exceptionInterceptor"/>
59
<interceptor-ref name="fileUpload"/>
60
<interceptor-ref name="commonInterceptors"/>
63
<interceptor-stack name="organisationUnitTreeStack">
64
<interceptor-ref name="transactionStack"/>
65
<interceptor-ref name="organisationUnitTreeInterceptor"/>
69
<default-interceptor-ref name="exceptionStack"/>
72
<result name="exceptionDefault" type="velocity">/exception.vm</result>
73
<result name="accessDenied" type="velocity">/accessDenied.vm</result>
74
<result name="plainTextError" type="plainTextErrorResult">
75
<param name="parse">true</param>
76
<param name="message">${exception.class.name}: ${exception.message}</param>
82
<!-- Organisation Unit Selection Tree -->
84
<package name="dhis-web-commons-oust" extends="dhis-web-commons" namespace="/dhis-web-commons/oust">
86
<action name="expandSubtree" class="org.hisp.dhis.oust.action.ExpandSubtreeAction">
87
<result name="success" type="velocity">/dhis-web-commons/ouwt/responseExpand.vm</result>
88
<interceptor-ref name="transactionStack"/>
89
<param name="onExceptionReturn">plainTextError</param>
92
<action name="getExpandedTree" class="org.hisp.dhis.oust.action.GetExpandedTreeAction">
93
<result name="success" type="velocity"> /dhis-web-commons/ouwt/responseTree.vm</result>
94
<interceptor-ref name="transactionStack"/>
95
<param name="onExceptionReturn">plainTextError</param>
98
<action name="setorgunit" class="org.hisp.dhis.oust.action.SetSelectedOrganisationUnitAction">
99
<result name="success" type="velocity"> /dhis-web-commons/ouwt/responseSelect.vm</result>
100
<interceptor-ref name="transactionStack"/>
101
<param name="onExceptionReturn">plainTextError</param>
104
<action name="addorgunit" class="org.hisp.dhis.oust.action.AddSelectedOrganisationUnitAction">
105
<result name="success" type="velocity"> /dhis-web-commons/ouwt/responseSelect.vm</result>
106
<interceptor-ref name="transactionStack"/>
107
<param name="onExceptionReturn">plainTextError</param>
110
<action name="removeorgunit"
111
class="org.hisp.dhis.oust.action.RemoveSelectedOrganisationUnitAction">
112
<result name="success" type="velocity"> /dhis-web-commons/ouwt/responseSelect.vm</result>
113
<interceptor-ref name="transactionStack"/>
114
<param name="onExceptionReturn">plainTextError</param>
119
<!-- Organisation Unit Web Tree -->
121
<package name="dhis-web-commons-ouwt" extends="dhis-web-commons" namespace="/dhis-web-commons/ouwt">
123
<action name="expandSubtree" class="org.hisp.dhis.ouwt.action.ExpandSubtreeAction">
124
<result name="success" type="velocity"> /dhis-web-commons/ouwt/responseExpand.vm</result>
125
<interceptor-ref name="transactionStack"/>
126
<param name="onExceptionReturn">plainTextError</param>
129
<action name="collapseSubtree" class="org.hisp.dhis.ouwt.action.CollapseSubtreeAction">
130
<result name="success" type="velocity"> /dhis-web-commons/ouwt/responseCollapse.vm</result>
131
<interceptor-ref name="transactionStack"/>
132
<param name="onExceptionReturn">plainTextError</param>
135
<action name="getExpandedTree" class="org.hisp.dhis.ouwt.action.GetExpandedTreeAction">
136
<result name="success" type="velocity"> /dhis-web-commons/ouwt/responseTree.vm</result>
137
<interceptor-ref name="transactionStack"/>
138
<param name="onExceptionReturn">plainTextError</param>
141
<action name="setorgunit" class="org.hisp.dhis.ouwt.action.SetSelectedOrganisationUnitAction">
142
<result name="success" type="velocity"> /dhis-web-commons/ouwt/responseSelect.vm</result>
143
<interceptor-ref name="transactionStack"/>
144
<param name="onExceptionReturn">plainTextError</param>
147
<action name="addorgunit" class="org.hisp.dhis.ouwt.action.AddSelectedOrganisationUnitAction">
148
<result name="success" type="velocity"> /dhis-web-commons/ouwt/responseSelect.vm</result>
149
<interceptor-ref name="transactionStack"/>
150
<param name="onExceptionReturn">plainTextError</param>
153
<action name="removeorgunit"
154
class="org.hisp.dhis.ouwt.action.RemoveSelectedOrganisationUnitAction">
155
<result name="success" type="velocity"> /dhis-web-commons/ouwt/responseSelect.vm</result>
156
<interceptor-ref name="transactionStack"/>
157
<param name="onExceptionReturn">plainTextError</param>
164
<package name="dhis-web-commons-menu" extends="dhis-web-commons" namespace="/dhis-web-commons/menu">
166
<action name="setMenuVisible" class="org.hisp.dhis.webportal.menu.action.SetMenuVisibleAction">
167
<result name="success" type="httpheader">
168
<param name="status">204</param>
170
<param name="onExceptionReturn">plainTextError</param>
173
<action name="setMenuHidden" class="org.hisp.dhis.webportal.menu.action.SetMenuHiddenAction">
174
<result name="success" type="httpheader">
175
<param name="status">204</param>
177
<param name="onExceptionReturn">plainTextError</param>
184
<package name="dhis-web-commons-security" extends="dhis-web-commons" namespace="/dhis-web-commons-security">
186
<action name="loggedIn" class="org.hisp.dhis.security.action.LoggedInAction">
187
<result name="success" type="redirect">/</result>
188
<interceptor-ref name="transactionStack"/>
195
<package name="dhis-web-commons-i18n" extends="dhis-web-commons" namespace="/dhis-web-commons">
197
<action name="i18n" class="org.hisp.dhis.i18n.action.I18nAction">
198
<result name="success" type="velocity">/main.vm</result>
199
<param name="page">/dhis-web-commons/i18n/translate.vm</param>
200
<param name="javascripts">../dhis-web-commons/i18n/i18n.js,../dhis-web-commons/lists/lists.js</param>
201
<interceptor-ref name="transactionStack"/>
204
<action name="translate" class="org.hisp.dhis.i18n.action.TranslateAction">
205
<result name="success" type="velocity">/dhis-web-commons/i18n/goback.vm</result>
208
<action name="getTranslations" class="org.hisp.dhis.i18n.action.GetTranslationsAction">
209
<result name="success" type="velocity">/dhis-web-commons/i18n/responseTranslations.vm</result>
210
<interceptor-ref name="transactionStack"/>
211
<param name="onExceptionReturn">plainTextError</param>
216
<!-- Common actions -->
218
<package name="dhis-web-commons-ajax" extends="dhis-web-commons" namespace="/dhis-web-commons-ajax">
220
<action name="getDataElements" class="org.hisp.dhis.commons.action.GetDataElementsAction">
221
<result name="success" type="velocity">/dhis-web-commons/ajax/responseDataElement.vm</result>
222
<interceptor-ref name="transactionStack"/>
223
<param name="onExceptionReturn">plainTextError</param>
226
<action name="getDataSets" class="org.hisp.dhis.commons.action.GetDataSetsAction">
227
<result name="success" type="velocity">/dhis-web-commons/ajax/responseDataSet.vm</result>
228
<interceptor-ref name="transactionStack"/>
229
<param name="onExceptionReturn">plainTextError</param>
232
<action name="getIndicators" class="org.hisp.dhis.commons.action.GetIndicatorsAction">
233
<result name="success" type="velocity">/dhis-web-commons/ajax/responseIndicator.vm</result>
234
<interceptor-ref name="transactionStack"/>
235
<param name="onExceptionReturn">plainTextError</param>
238
<action name="getOrganisationUnitChildren" class="org.hisp.dhis.commons.action.GetOrganisationUnitChildrenAction">
239
<result name="success" type="velocity">/dhis-web-commons/ajax/responseOrganisationUnit.vm</result>
240
<interceptor-ref name="transactionStack"/>
241
<param name="onExceptionReturn">plainTextError</param>
244
<action name="getOrganisationUnits" class="org.hisp.dhis.commons.action.GetOrganisationUnitsAction">
245
<result name="success" type="velocity">/dhis-web-commons/ajax/responseOrganisationUnit.vm</result>
246
<interceptor-ref name="transactionStack"/>
247
<param name="onExceptionReturn">plainTextError</param>
250
<action name="getPeriods" class="org.hisp.dhis.commons.action.GetPeriodsAction">
251
<result name="success" type="velocity">/dhis-web-commons/ajax/responsePeriod.vm</result>
252
<interceptor-ref name="transactionStack"/>
253
<param name="onExceptionReturn">plainTextError</param>
260
<package name="dhis-web-commons-about" extends="dhis-web-commons" namespace="/dhis-web-commons-about">
262
<action name="about" class="org.hisp.dhis.about.action.AboutAction">
263
<result name="success" type="velocity">/main.vm</result>
264
<param name="page">/dhis-web-commons/about/about.vm</param>
265
<param name="menu">/dhis-web-commons/about/menu.vm</param>
268
<action name="displayFeedbackForm" class="org.hisp.dhis.commons.action.NoAction">
269
<result name="success" type="velocity">/main.vm</result>
270
<param name="page">/dhis-web-commons/about/feedbackForm.vm</param>
271
<param name="menu">/dhis-web-commons/about/menu.vm</param>
274
<action name="sendFeedback" class="org.hisp.dhis.about.action.SendFeedbackAction">
275
<result name="success" type="redirect">intro.action</result>
278
<action name="help" class="org.hisp.dhis.about.action.HelpAction">
279
<result name="success" type="velocity">/main.vm</result>
280
<param name="page">/dhis-web-commons/help/help.vm</param>
281
<param name="menu">/dhis-web-commons/about/menu.vm</param>