Subversion Repositories general

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
920 dev 1
<?xml version="1.0" encoding="ISO-8859-1" ?>
2
 
3
<!DOCTYPE struts-config PUBLIC
4
	"-//Apache Software Foundation//DTD Struts Configuration 1.1//EN"
5
	"http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd">
6
 
7
<struts-config>
8
	<form-beans>
9
		<form-bean
10
				name="ak.hostcaptain.core.form.LoginForm"
11
				type="org.apache.struts.validator.DynaValidatorForm">
12
			<form-property name="login"       type="java.lang.String"   />
13
			<form-property name="password"    type="java.lang.String"   />
14
		</form-bean>
15
 
16
		<form-bean
17
				name="ak.hostcaptain.core.form.ChangePasswordForm"
18
				type="ak.hostcaptain.core.form.UserPasswordForm">
19
			<form-property name="oldpassword" type="java.lang.String"   />
20
			<form-property name="password"    type="java.lang.String"   />
21
			<form-property name="password2"   type="java.lang.String"   />
22
		</form-bean>
23
 
24
		<form-bean
25
				name="ak.hostcaptain.core.form.UserForm"
26
				type="org.apache.struts.validator.DynaValidatorForm">
27
			<form-property name="id"          type="java.lang.String"   />
28
		</form-bean>
29
 
30
		<form-bean
31
				name="ak.hostcaptain.core.form.UserEditForm"
32
				type="ak.hostcaptain.core.form.UserPasswordForm">
33
			<form-property name="id"          type="java.lang.String"   />
34
			<form-property name="login"       type="java.lang.String"   />
35
			<form-property name="password"    type="java.lang.String"   />
36
			<form-property name="password2"   type="java.lang.String"   />
37
			<form-property name="boss"        type="java.lang.String"   />
38
			<form-property name="superuser"   type="java.lang.Boolean"  />
39
			<form-property name="enabled"     type="java.lang.Boolean"  />
40
			<form-property name="comment"     type="java.lang.String"   />
41
		</form-bean>
42
 
43
		<form-bean
44
				name="ak.hostcaptain.core.form.SystemUserForm"
45
				type="org.apache.struts.validator.DynaValidatorForm">
46
			<form-property name="id"          type="java.lang.String"   />
47
		</form-bean>
48
 
49
		<form-bean
50
				name="ak.hostcaptain.core.form.SystemUserEditForm"
51
				type="org.apache.struts.validator.DynaValidatorForm">
52
			<form-property name="id"          type="java.lang.String"   />
53
			<form-property name="uid"         type="java.lang.String"   />
54
			<form-property name="name"        type="java.lang.String"   />
55
			<form-property name="owner"       type="java.lang.String"   />
56
			<form-property name="enabled"     type="java.lang.Boolean"  />
57
			<form-property name="comment"     type="java.lang.String"   />
58
		</form-bean>
59
 
60
		<form-bean
61
				name="ak.hostcaptain.core.form.InetDomainForm"
62
				type="org.apache.struts.validator.DynaValidatorForm">
63
			<form-property name="id"          type="java.lang.String"   />
64
		</form-bean>
65
 
66
		<form-bean
67
				name="ak.hostcaptain.core.form.InetDomainEditForm"
68
				type="org.apache.struts.validator.DynaValidatorForm">
69
			<form-property name="id"          type="java.lang.String"   />
70
			<form-property name="name"        type="java.lang.String"   />
71
			<form-property name="owner"       type="java.lang.String"   />
72
			<form-property name="enabled"     type="java.lang.Boolean"  />
73
			<form-property name="comment"     type="java.lang.String"   />
74
		</form-bean>
75
 
76
		<form-bean
77
				name="ak.hostcaptain.core.form.MailboxForm"
78
				type="org.apache.struts.validator.DynaValidatorForm">
79
			<form-property name="id"          type="java.lang.String"   />
80
		</form-bean>
81
 
82
		<form-bean
83
				name="ak.hostcaptain.core.form.MailboxEditForm"
84
				type="ak.hostcaptain.core.form.UserPasswordForm">
85
			<form-property name="id"          type="java.lang.String"   />
86
			<form-property name="login"       type="java.lang.String"   />
87
			<form-property name="password"    type="java.lang.String"   />
88
			<form-property name="password2"   type="java.lang.String"   />
89
			<form-property name="domain"      type="java.lang.String"   />
90
			<form-property name="owner"       type="java.lang.String"   />
91
			<form-property name="viruscheck"  type="java.lang.Boolean"  />
92
			<form-property name="spamcheck"   type="java.lang.Boolean"  />
93
			<form-property name="systemuser"  type="java.lang.String"   />
94
			<form-property name="enabled"     type="java.lang.Boolean"  />
95
			<form-property name="comment"     type="java.lang.String"   />
96
		</form-bean>
97
 
98
		<form-bean
99
				name="ak.hostcaptain.core.form.MailAliasForm"
100
				type="org.apache.struts.validator.DynaValidatorForm">
101
			<form-property name="id"          type="java.lang.String"   />
102
		</form-bean>
103
 
104
		<form-bean
105
				name="ak.hostcaptain.core.form.MailAliasEditForm"
106
				type="ak.strutsx.ResizeableDynaValidatorForm">
107
			<form-property name="id"          type="java.lang.String"   />
108
			<form-property name="address"     type="java.lang.String"   />
109
			<form-property name="domain"      type="java.lang.String"   />
110
			<form-property name="owner"       type="java.lang.String"   />
111
			<form-property name="enabled"     type="java.lang.Boolean"  />
112
			<form-property name="comment"     type="java.lang.String"   />
113
			<form-property name="dests"       type="ak.hostcaptain.core.form.MailAliasDestBean[]"
114
				size="1" />
115
		</form-bean>
116
	</form-beans>
117
 
118
	<global-exceptions>
119
		<!-- FIXME: it doesn't work :( -->
120
		<!-- exception
121
			key="GeneralException"
122
			type="java.lang.Exception"
123
			path="/generalError.jsp"
124
		/ -->
125
 
126
		<exception
127
			key="UserException"
128
			type="ak.hostcaptain.util.UserException"
129
			handler="ak.hostcaptain.core.action.UserExceptionHandler"
130
		/>
131
	</global-exceptions>
132
 
133
	<global-forwards>
134
		<forward
135
			name="error"
136
			path="/error.jsp"
137
		/>
138
	</global-forwards>
139
 
140
	<action-mappings>
141
		<action
142
			path="/index"
143
			type="ak.hostcaptain.core.action.IndexAction"
144
		>
145
			<forward name="success" path="/index.jsp" />
146
		</action>
147
 
148
		<!-- == system ============================================================================ -->
149
 
150
		<action
151
			path="/system/login"
152
			forward="/system/login.jsp" />
153
 
154
		<action
155
			path="/system/login/submit"
156
			type="ak.hostcaptain.core.action.LoginAction"
157
			name="ak.hostcaptain.core.form.LoginForm"
158
			validate="true"
159
			scope="request"
160
			input="/system/login.jsp"
161
		>
162
			<forward name="default" path="/index.do" redirect="true" />
163
		</action>
164
 
165
		<action
166
			path="/system/logout"
167
			type="ak.hostcaptain.core.action.LogoutAction"
168
		>
169
			<forward name="default" path="/system/logout.jsp" />
170
		</action>
171
 
172
		<!-- == user ============================================================================== -->
173
 
174
		<action
175
			path="/user/password/show"
176
			type="ak.hostcaptain.core.action.ChangePasswordAction"
177
			parameter="first"
178
		>
179
			<forward name="default" path="/user/password/change.jsp" />
180
		</action>
181
 
182
		<action
183
			path="/user/password/submit"
184
			type="ak.hostcaptain.core.action.ChangePasswordAction"
185
			parameter="submit"
186
			name="ak.hostcaptain.core.form.ChangePasswordForm"
187
			validate="true"
188
			scope="request"
189
			input="/user/password/change.jsp"
190
		>
191
		</action>
192
 
193
		<action
194
			path="/user/list"
195
			type="ak.hostcaptain.core.action.UserAction"
196
			parameter="list"
197
		>
198
			<forward name="default" path="/user/list.jsp" />
199
		</action>
200
 
201
		<action
202
			path="/user/delete"
203
			type="ak.hostcaptain.core.action.UserAction"
204
			parameter="delete"
205
			name="ak.hostcaptain.core.form.UserForm"
206
			validate="true"
207
			scope="request"
208
		>
209
		</action>
210
 
211
		<action
212
			path="/user/edit"
213
			type="ak.hostcaptain.core.action.UserAction"
214
			parameter="edit"
215
			name="ak.hostcaptain.core.form.UserForm"
216
			validate="true"
217
			scope="request"
218
		>
219
			<forward name="default" path="/user/edit.jsp" />
923 dev 220
			<forward name="view"    path="/user/view.jsp" />
920 dev 221
		</action>
222
 
223
		<action
224
			path="/user/submit"
225
			type="ak.hostcaptain.core.action.UserAction"
226
			parameter="submit"
227
			name="ak.hostcaptain.core.form.UserEditForm"
228
			validate="true"
229
			scope="request"
230
			input="/user/edit.jsp"
231
		>
232
		</action>
233
 
234
		<!-- == system user ======================================================================= -->
235
 
236
		<action
237
			path="/user/system/list"
238
			type="ak.hostcaptain.core.action.SystemUserAction"
239
			parameter="list"
240
		>
241
			<forward name="default" path="/user/system/list.jsp" />
242
		</action>
243
 
244
		<action
245
			path="/user/system/delete"
246
			type="ak.hostcaptain.core.action.SystemUserAction"
247
			parameter="delete"
248
			name="ak.hostcaptain.core.form.SystemUserForm"
249
			validate="true"
250
			scope="request"
251
		>
252
		</action>
253
 
254
		<action
255
			path="/user/system/edit"
256
			type="ak.hostcaptain.core.action.SystemUserAction"
257
			parameter="edit"
258
			name="ak.hostcaptain.core.form.SystemUserForm"
259
			validate="true"
260
			scope="request"
261
		>
262
			<forward name="default" path="/user/system/edit.jsp" />
923 dev 263
			<forward name="view"    path="/user/system/view.jsp" />
920 dev 264
		</action>
265
 
266
		<action
267
			path="/user/system/submit"
268
			type="ak.hostcaptain.core.action.SystemUserAction"
269
			parameter="submit"
270
			name="ak.hostcaptain.core.form.SystemUserEditForm"
271
			validate="true"
272
			scope="request"
273
			input="/user/system/edit.jsp"
274
		>
275
		</action>
276
 
277
		<!-- == system user ======================================================================= -->
278
 
279
		<action
280
			path="/domain/list"
281
			type="ak.hostcaptain.core.action.InetDomainAction"
282
			parameter="list"
283
		>
284
			<forward name="default" path="/domain/list.jsp" />
285
		</action>
286
 
287
		<action
288
			path="/domain/delete"
289
			type="ak.hostcaptain.core.action.InetDomainAction"
290
			parameter="delete"
291
			name="ak.hostcaptain.core.form.InetDomainForm"
292
			validate="true"
293
			scope="request"
294
		>
295
		</action>
296
 
297
		<action
298
			path="/domain/edit"
299
			type="ak.hostcaptain.core.action.InetDomainAction"
300
			parameter="edit"
301
			name="ak.hostcaptain.core.form.InetDomainForm"
302
			validate="true"
303
			scope="request"
304
		>
305
			<forward name="default" path="/domain/edit.jsp" />
923 dev 306
			<forward name="view"    path="/domain/view.jsp" />
920 dev 307
		</action>
308
 
309
		<action
310
			path="/domain/submit"
311
			type="ak.hostcaptain.core.action.InetDomainAction"
312
			parameter="submit"
313
			name="ak.hostcaptain.core.form.InetDomainEditForm"
314
			validate="true"
315
			scope="request"
316
			input="/domain/edit.jsp"
317
		>
318
		</action>
319
 
320
		<!-- == mail boxes ======================================================================== -->
321
 
322
		<action
323
			path="/mail/box/list"
324
			type="ak.hostcaptain.core.action.MailboxAction"
325
			parameter="list"
326
		>
327
			<forward name="default" path="/mail/box/list.jsp" />
328
		</action>
329
 
330
		<action
331
			path="/mail/box/delete"
332
			type="ak.hostcaptain.core.action.MailboxAction"
333
			parameter="delete"
334
			name="ak.hostcaptain.core.form.MailboxForm"
335
			validate="true"
336
			scope="request"
337
		>
338
		</action>
339
 
340
		<action
341
			path="/mail/box/edit"
342
			type="ak.hostcaptain.core.action.MailboxAction"
343
			parameter="edit"
344
			name="ak.hostcaptain.core.form.MailboxForm"
345
			validate="true"
346
			scope="request"
347
		>
348
			<forward name="default" path="/mail/box/edit.jsp" />
923 dev 349
			<forward name="view"    path="/mail/box/view.jsp" />
920 dev 350
		</action>
351
 
352
		<action
353
			path="/mail/box/submit"
354
			type="ak.hostcaptain.core.action.MailboxAction"
355
			parameter="submit"
356
			name="ak.hostcaptain.core.form.MailboxEditForm"
357
			validate="true"
358
			scope="request"
359
			input="/mail/box/edit.jsp"
360
		>
361
		</action>
362
 
363
		<!-- == mail aliases ====================================================================== -->
364
 
365
		<action
366
			path="/mail/alias/list"
367
			type="ak.hostcaptain.core.action.MailAliasAction"
368
			parameter="list"
369
		>
370
			<forward name="default" path="/mail/alias/list.jsp" />
371
		</action>
372
 
373
		<action
374
			path="/mail/alias/delete"
375
			type="ak.hostcaptain.core.action.MailAliasAction"
376
			parameter="delete"
377
			name="ak.hostcaptain.core.form.MailAliasForm"
378
			validate="true"
379
			scope="request"
380
		>
381
		</action>
382
 
383
		<action
384
			path="/mail/alias/edit"
385
			type="ak.hostcaptain.core.action.MailAliasAction"
386
			parameter="edit"
387
			name="ak.hostcaptain.core.form.MailAliasForm"
388
			validate="true"
389
			scope="request"
390
		>
923 dev 391
			<forward name="default"   path="/mail/alias/edit.jsp" />
392
			<forward name="editdests" path="/mail/alias/editdests.jsp" />
393
			<forward name="view"      path="/mail/alias/view.jsp" />
920 dev 394
		</action>
395
 
396
		<action
397
			path="/mail/alias/submit"
398
			type="ak.hostcaptain.core.action.MailAliasAction"
399
			parameter="submit"
400
			name="ak.hostcaptain.core.form.MailAliasEditForm"
401
			validate="true"
402
			scope="request"
403
			input="/mail/alias/edit.do"
404
		>
923 dev 405
			<forward name="default"   path="/mail/alias/edit.jsp" />
406
			<forward name="editdests" path="/mail/alias/editdests.jsp" />
407
			<forward name="view"      path="/mail/alias/view.jsp" />
920 dev 408
		</action>
409
 
410
	</action-mappings>
411
 
412
	<controller processorClass="ak.strutsx.RequestProcessorX" />
413
 
414
	<message-resources parameter="ak.hostcaptain.core.CoreResources" />
415
 
416
	<!-- ========== Plug-Ins Configuration ================================== -->
417
 
418
	<plug-in className="org.apache.struts.validator.ValidatorPlugIn">
419
		<set-property property="pathnames"
420
			value="/WEB-INF/validator-rules.xml,/WEB-INF/validation.xml" />
421
	</plug-in>
422
 
423
</struts-config>