Subversion Repositories general

Rev

Rev 1021 | Rev 1044 | Go to most recent revision | Details | Compare with Previous | 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
958 dev 10
				name="LoginForm"
920 dev 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
958 dev 17
				name="ChangePasswordForm"
924 dev 18
				type="ak.hostadmiral.core.form.UserPasswordForm">
920 dev 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
1028 dev 25
				name="UserListForm"
26
				type="org.apache.struts.validator.DynaValidatorForm">
27
			<form-property name="pg"          type="java.lang.String"   />
28
		</form-bean>
29
 
30
		<form-bean
958 dev 31
				name="UserForm"
920 dev 32
				type="org.apache.struts.validator.DynaValidatorForm">
33
			<form-property name="id"          type="java.lang.String"   />
34
		</form-bean>
35
 
36
		<form-bean
958 dev 37
				name="UserLoginsForm"
949 dev 38
				type="org.apache.struts.validator.DynaValidatorForm">
39
			<form-property name="id"          type="java.lang.String"   />
40
		</form-bean>
41
 
42
		<form-bean
958 dev 43
				name="UserEditForm"
924 dev 44
				type="ak.hostadmiral.core.form.UserPasswordForm">
920 dev 45
			<form-property name="id"          type="java.lang.String"   />
46
			<form-property name="login"       type="java.lang.String"   />
47
			<form-property name="password"    type="java.lang.String"   />
48
			<form-property name="password2"   type="java.lang.String"   />
49
			<form-property name="boss"        type="java.lang.String"   />
50
			<form-property name="superuser"   type="java.lang.Boolean"  />
950 dev 51
			<form-property name="locale"      type="java.lang.String"   />
920 dev 52
			<form-property name="enabled"     type="java.lang.Boolean"  />
53
			<form-property name="comment"     type="java.lang.String"   />
54
		</form-bean>
55
 
56
		<form-bean
958 dev 57
				name="UserPartEditForm"
950 dev 58
				type="org.apache.struts.validator.DynaValidatorForm">
59
			<form-property name="id"          type="java.lang.String"   />
60
			<form-property name="locale"      type="java.lang.String"   />
61
		</form-bean>
62
 
63
		<form-bean
1028 dev 64
				name="SystemUserListForm"
65
				type="org.apache.struts.validator.DynaValidatorForm">
66
			<form-property name="pg"          type="java.lang.String"   />
67
		</form-bean>
68
 
69
		<form-bean
958 dev 70
				name="SystemUserForm"
920 dev 71
				type="org.apache.struts.validator.DynaValidatorForm">
72
			<form-property name="id"          type="java.lang.String"   />
73
		</form-bean>
74
 
75
		<form-bean
958 dev 76
				name="SystemUserEditForm"
920 dev 77
				type="org.apache.struts.validator.DynaValidatorForm">
78
			<form-property name="id"          type="java.lang.String"   />
79
			<form-property name="uid"         type="java.lang.String"   />
80
			<form-property name="name"        type="java.lang.String"   />
81
			<form-property name="owner"       type="java.lang.String"   />
82
			<form-property name="enabled"     type="java.lang.Boolean"  />
83
			<form-property name="comment"     type="java.lang.String"   />
84
		</form-bean>
85
 
86
		<form-bean
1028 dev 87
				name="InetDomainListForm"
88
				type="org.apache.struts.validator.DynaValidatorForm">
89
			<form-property name="pg"          type="java.lang.String"   />
90
		</form-bean>
91
 
92
		<form-bean
958 dev 93
				name="InetDomainForm"
920 dev 94
				type="org.apache.struts.validator.DynaValidatorForm">
95
			<form-property name="id"          type="java.lang.String"   />
96
		</form-bean>
97
 
98
		<form-bean
958 dev 99
				name="InetDomainEditForm"
920 dev 100
				type="org.apache.struts.validator.DynaValidatorForm">
101
			<form-property name="id"          type="java.lang.String"   />
102
			<form-property name="name"        type="java.lang.String"   />
103
			<form-property name="owner"       type="java.lang.String"   />
104
			<form-property name="enabled"     type="java.lang.Boolean"  />
105
			<form-property name="comment"     type="java.lang.String"   />
106
		</form-bean>
107
 
108
		<form-bean
1020 dev 109
				name="MailboxListForm"
110
				type="org.apache.struts.validator.DynaValidatorForm">
1021 dev 111
			<form-property name="pg"          type="java.lang.String"   />
1020 dev 112
		</form-bean>
113
 
114
		<form-bean
958 dev 115
				name="MailboxForm"
920 dev 116
				type="org.apache.struts.validator.DynaValidatorForm">
117
			<form-property name="id"          type="java.lang.String"   />
118
		</form-bean>
119
 
120
		<form-bean
958 dev 121
				name="MailboxEditForm"
924 dev 122
				type="ak.hostadmiral.core.form.UserPasswordForm">
920 dev 123
			<form-property name="id"          type="java.lang.String"   />
124
			<form-property name="login"       type="java.lang.String"   />
125
			<form-property name="password"    type="java.lang.String"   />
126
			<form-property name="password2"   type="java.lang.String"   />
127
			<form-property name="domain"      type="java.lang.String"   />
128
			<form-property name="owner"       type="java.lang.String"   />
129
			<form-property name="viruscheck"  type="java.lang.Boolean"  />
130
			<form-property name="spamcheck"   type="java.lang.Boolean"  />
131
			<form-property name="systemuser"  type="java.lang.String"   />
132
			<form-property name="enabled"     type="java.lang.Boolean"  />
133
			<form-property name="comment"     type="java.lang.String"   />
134
		</form-bean>
135
 
136
		<form-bean
1028 dev 137
				name="MailAliasListForm"
138
				type="org.apache.struts.validator.DynaValidatorForm">
139
			<form-property name="pg"          type="java.lang.String"   />
140
		</form-bean>
141
 
142
		<form-bean
958 dev 143
				name="MailAliasForm"
920 dev 144
				type="org.apache.struts.validator.DynaValidatorForm">
145
			<form-property name="id"          type="java.lang.String"   />
146
		</form-bean>
147
 
148
		<form-bean
958 dev 149
				name="MailAliasEditForm"
920 dev 150
				type="ak.strutsx.ResizeableDynaValidatorForm">
151
			<form-property name="id"          type="java.lang.String"   />
152
			<form-property name="address"     type="java.lang.String"   />
153
			<form-property name="domain"      type="java.lang.String"   />
154
			<form-property name="owner"       type="java.lang.String"   />
155
			<form-property name="enabled"     type="java.lang.Boolean"  />
156
			<form-property name="comment"     type="java.lang.String"   />
924 dev 157
			<form-property name="dests"       type="ak.hostadmiral.core.form.MailAliasDestBean[]"
920 dev 158
				size="1" />
159
		</form-bean>
160
	</form-beans>
161
 
162
	<global-exceptions>
163
		<!-- FIXME: it doesn't work :( -->
164
		<!-- exception
165
			key="GeneralException"
166
			type="java.lang.Exception"
167
			path="/generalError.jsp"
168
		/ -->
169
 
170
		<exception
171
			key="UserException"
924 dev 172
			type="ak.hostadmiral.util.UserException"
173
			handler="ak.hostadmiral.core.action.UserExceptionHandler"
920 dev 174
		/>
175
	</global-exceptions>
176
 
177
	<global-forwards>
178
		<forward
179
			name="error"
180
			path="/error.jsp"
181
		/>
182
	</global-forwards>
183
 
184
	<action-mappings>
185
		<action
186
			path="/index"
924 dev 187
			type="ak.hostadmiral.core.action.IndexAction"
920 dev 188
		>
189
			<forward name="success" path="/index.jsp" />
190
		</action>
191
 
192
		<!-- == system ============================================================================ -->
193
 
194
		<action
195
			path="/system/login"
1014 dev 196
			type="ak.hostadmiral.core.action.LoginAction"
197
			parameter="show"
198
		>
199
			<forward name="default" path="/system/login.jsp" />
200
		</action>
920 dev 201
 
202
		<action
203
			path="/system/login/submit"
924 dev 204
			type="ak.hostadmiral.core.action.LoginAction"
1014 dev 205
			parameter="submit"
958 dev 206
			name="LoginForm"
920 dev 207
			validate="true"
208
			scope="request"
209
			input="/system/login.jsp"
210
		>
211
			<forward name="default" path="/index.do" redirect="true" />
212
		</action>
213
 
214
		<action
215
			path="/system/logout"
924 dev 216
			type="ak.hostadmiral.core.action.LogoutAction"
920 dev 217
		>
218
			<forward name="default" path="/system/logout.jsp" />
219
		</action>
220
 
221
		<!-- == user ============================================================================== -->
222
 
223
		<action
224
			path="/user/password/show"
924 dev 225
			type="ak.hostadmiral.core.action.ChangePasswordAction"
920 dev 226
			parameter="first"
227
		>
228
			<forward name="default" path="/user/password/change.jsp" />
229
		</action>
230
 
231
		<action
232
			path="/user/password/submit"
924 dev 233
			type="ak.hostadmiral.core.action.ChangePasswordAction"
920 dev 234
			parameter="submit"
958 dev 235
			name="ChangePasswordForm"
920 dev 236
			validate="true"
237
			scope="request"
238
			input="/user/password/change.jsp"
239
		>
240
		</action>
241
 
242
		<action
949 dev 243
			path="/user/logins"
244
			type="ak.hostadmiral.core.action.UserLoginsAction"
958 dev 245
			name="UserLoginsForm"
949 dev 246
			validate="true"
247
			scope="request"
248
		>
249
			<forward name="default" path="/user/logins.jsp" />
250
		</action>
251
 
252
		<action
253
			path="/user/failedLogins"
254
			type="ak.hostadmiral.core.action.FailedLoginsAction"
255
		>
256
			<forward name="default" path="/user/failedLogins.jsp" />
257
		</action>
258
 
259
		<action
920 dev 260
			path="/user/list"
924 dev 261
			type="ak.hostadmiral.core.action.UserAction"
920 dev 262
			parameter="list"
1028 dev 263
			name="UserListForm"
264
			validate="true"
265
			scope="request"
920 dev 266
		>
267
			<forward name="default" path="/user/list.jsp" />
268
		</action>
269
 
270
		<action
946 dev 271
			path="/user/deleting"
272
			type="ak.hostadmiral.core.action.UserAction"
273
			parameter="deleting"
958 dev 274
			name="UserForm"
946 dev 275
			validate="true"
276
			scope="request"
277
		>
278
			<forward name="default" path="/deleting.jsp" />
279
		</action>
280
 
281
		<action
920 dev 282
			path="/user/delete"
924 dev 283
			type="ak.hostadmiral.core.action.UserAction"
920 dev 284
			parameter="delete"
958 dev 285
			name="UserForm"
920 dev 286
			validate="true"
287
			scope="request"
288
		>
289
		</action>
290
 
291
		<action
292
			path="/user/edit"
924 dev 293
			type="ak.hostadmiral.core.action.UserAction"
920 dev 294
			parameter="edit"
958 dev 295
			name="UserForm"
920 dev 296
			validate="true"
297
			scope="request"
298
		>
950 dev 299
			<forward name="default"  path="/user/edit.jsp"     />
300
			<forward name="view"     path="/user/view.jsp"     />
920 dev 301
		</action>
302
 
303
		<action
304
			path="/user/submit"
924 dev 305
			type="ak.hostadmiral.core.action.UserAction"
920 dev 306
			parameter="submit"
958 dev 307
			name="UserEditForm"
920 dev 308
			validate="true"
309
			scope="request"
310
			input="/user/edit.jsp"
311
		>
312
		</action>
313
 
950 dev 314
		<action
315
			path="/user/partedit"
316
			type="ak.hostadmiral.core.action.UserAction"
317
			parameter="partedit"
958 dev 318
			name="UserForm"
950 dev 319
			validate="true"
320
			scope="request"
321
		>
322
			<forward name="default"  path="/user/partedit.jsp" />
323
		</action>
324
 
325
		<action
326
			path="/user/partsubmit"
327
			type="ak.hostadmiral.core.action.UserAction"
328
			parameter="partsubmit"
958 dev 329
			name="UserPartEditForm"
950 dev 330
			validate="true"
331
			scope="request"
332
			input="/user/partedit.jsp"
333
		>
334
		</action>
335
 
920 dev 336
		<!-- == system user ======================================================================= -->
337
 
338
		<action
339
			path="/user/system/list"
924 dev 340
			type="ak.hostadmiral.core.action.SystemUserAction"
920 dev 341
			parameter="list"
1028 dev 342
			name="SystemUserListForm"
343
			validate="true"
344
			scope="request"
920 dev 345
		>
346
			<forward name="default" path="/user/system/list.jsp" />
347
		</action>
348
 
349
		<action
1012 dev 350
			path="/user/system/deleting"
351
			type="ak.hostadmiral.core.action.SystemUserAction"
352
			parameter="deleting"
353
			name="SystemUserForm"
354
			validate="true"
355
			scope="request"
356
		>
357
			<forward name="default" path="/deleting.jsp" />
358
		</action>
359
 
360
		<action
920 dev 361
			path="/user/system/delete"
924 dev 362
			type="ak.hostadmiral.core.action.SystemUserAction"
920 dev 363
			parameter="delete"
958 dev 364
			name="SystemUserForm"
920 dev 365
			validate="true"
366
			scope="request"
367
		>
368
		</action>
369
 
370
		<action
371
			path="/user/system/edit"
924 dev 372
			type="ak.hostadmiral.core.action.SystemUserAction"
920 dev 373
			parameter="edit"
958 dev 374
			name="SystemUserForm"
920 dev 375
			validate="true"
376
			scope="request"
377
		>
378
			<forward name="default" path="/user/system/edit.jsp" />
923 dev 379
			<forward name="view"    path="/user/system/view.jsp" />
920 dev 380
		</action>
381
 
382
		<action
383
			path="/user/system/submit"
924 dev 384
			type="ak.hostadmiral.core.action.SystemUserAction"
920 dev 385
			parameter="submit"
958 dev 386
			name="SystemUserEditForm"
920 dev 387
			validate="true"
388
			scope="request"
389
			input="/user/system/edit.jsp"
390
		>
391
		</action>
392
 
1012 dev 393
		<!-- == inet domain ======================================================================= -->
920 dev 394
 
395
		<action
396
			path="/domain/list"
924 dev 397
			type="ak.hostadmiral.core.action.InetDomainAction"
920 dev 398
			parameter="list"
1028 dev 399
			name="InetDomainListForm"
400
			validate="true"
401
			scope="request"
920 dev 402
		>
403
			<forward name="default" path="/domain/list.jsp" />
404
		</action>
405
 
406
		<action
1012 dev 407
			path="/domain/deleting"
408
			type="ak.hostadmiral.core.action.InetDomainAction"
409
			parameter="deleting"
410
			name="InetDomainForm"
411
			validate="true"
412
			scope="request"
413
		>
414
			<forward name="default" path="/deleting.jsp" />
415
		</action>
416
 
417
		<action
920 dev 418
			path="/domain/delete"
924 dev 419
			type="ak.hostadmiral.core.action.InetDomainAction"
920 dev 420
			parameter="delete"
958 dev 421
			name="InetDomainForm"
920 dev 422
			validate="true"
423
			scope="request"
424
		>
425
		</action>
426
 
427
		<action
428
			path="/domain/edit"
924 dev 429
			type="ak.hostadmiral.core.action.InetDomainAction"
920 dev 430
			parameter="edit"
958 dev 431
			name="InetDomainForm"
920 dev 432
			validate="true"
433
			scope="request"
434
		>
435
			<forward name="default" path="/domain/edit.jsp" />
923 dev 436
			<forward name="view"    path="/domain/view.jsp" />
920 dev 437
		</action>
438
 
439
		<action
440
			path="/domain/submit"
924 dev 441
			type="ak.hostadmiral.core.action.InetDomainAction"
920 dev 442
			parameter="submit"
958 dev 443
			name="InetDomainEditForm"
920 dev 444
			validate="true"
445
			scope="request"
446
			input="/domain/edit.jsp"
447
		>
448
		</action>
449
 
450
		<!-- == mail boxes ======================================================================== -->
451
 
452
		<action
453
			path="/mail/box/list"
924 dev 454
			type="ak.hostadmiral.core.action.MailboxAction"
920 dev 455
			parameter="list"
1020 dev 456
			name="MailboxListForm"
457
			validate="true"
458
			scope="request"
920 dev 459
		>
460
			<forward name="default" path="/mail/box/list.jsp" />
461
		</action>
462
 
463
		<action
1012 dev 464
			path="/mail/box/deleting"
465
			type="ak.hostadmiral.core.action.MailboxAction"
466
			parameter="deleting"
467
			name="MailboxForm"
468
			validate="true"
469
			scope="request"
470
		>
471
			<forward name="default" path="/deleting.jsp" />
472
		</action>
473
 
474
		<action
920 dev 475
			path="/mail/box/delete"
924 dev 476
			type="ak.hostadmiral.core.action.MailboxAction"
920 dev 477
			parameter="delete"
958 dev 478
			name="MailboxForm"
920 dev 479
			validate="true"
480
			scope="request"
481
		>
482
		</action>
483
 
484
		<action
485
			path="/mail/box/edit"
924 dev 486
			type="ak.hostadmiral.core.action.MailboxAction"
920 dev 487
			parameter="edit"
958 dev 488
			name="MailboxForm"
920 dev 489
			validate="true"
490
			scope="request"
491
		>
492
			<forward name="default" path="/mail/box/edit.jsp" />
923 dev 493
			<forward name="view"    path="/mail/box/view.jsp" />
920 dev 494
		</action>
495
 
496
		<action
497
			path="/mail/box/submit"
924 dev 498
			type="ak.hostadmiral.core.action.MailboxAction"
920 dev 499
			parameter="submit"
958 dev 500
			name="MailboxEditForm"
920 dev 501
			validate="true"
502
			scope="request"
503
			input="/mail/box/edit.jsp"
504
		>
505
		</action>
506
 
507
		<!-- == mail aliases ====================================================================== -->
508
 
509
		<action
510
			path="/mail/alias/list"
924 dev 511
			type="ak.hostadmiral.core.action.MailAliasAction"
920 dev 512
			parameter="list"
1028 dev 513
			name="MailAliasListForm"
514
			validate="true"
515
			scope="request"
920 dev 516
		>
517
			<forward name="default" path="/mail/alias/list.jsp" />
518
		</action>
519
 
520
		<action
1012 dev 521
			path="/mail/alias/deleting"
522
			type="ak.hostadmiral.core.action.MailAliasAction"
523
			parameter="deleting"
524
			name="MailAliasForm"
525
			validate="true"
526
			scope="request"
527
		>
528
			<forward name="default" path="/deleting.jsp" />
529
		</action>
530
 
531
		<action
920 dev 532
			path="/mail/alias/delete"
924 dev 533
			type="ak.hostadmiral.core.action.MailAliasAction"
920 dev 534
			parameter="delete"
958 dev 535
			name="MailAliasForm"
920 dev 536
			validate="true"
537
			scope="request"
538
		>
539
		</action>
540
 
541
		<action
542
			path="/mail/alias/edit"
924 dev 543
			type="ak.hostadmiral.core.action.MailAliasAction"
920 dev 544
			parameter="edit"
958 dev 545
			name="MailAliasForm"
920 dev 546
			validate="true"
547
			scope="request"
548
		>
923 dev 549
			<forward name="default"   path="/mail/alias/edit.jsp" />
550
			<forward name="editdests" path="/mail/alias/editdests.jsp" />
551
			<forward name="view"      path="/mail/alias/view.jsp" />
920 dev 552
		</action>
553
 
554
		<action
555
			path="/mail/alias/submit"
924 dev 556
			type="ak.hostadmiral.core.action.MailAliasAction"
920 dev 557
			parameter="submit"
958 dev 558
			name="MailAliasEditForm"
920 dev 559
			validate="true"
560
			scope="request"
561
			input="/mail/alias/edit.do"
562
		>
923 dev 563
			<forward name="default"   path="/mail/alias/edit.jsp" />
564
			<forward name="editdests" path="/mail/alias/editdests.jsp" />
565
			<forward name="view"      path="/mail/alias/view.jsp" />
920 dev 566
		</action>
567
 
568
	</action-mappings>
569
 
570
	<controller processorClass="ak.strutsx.RequestProcessorX" />
571
 
924 dev 572
	<message-resources parameter="ak.hostadmiral.core.CoreResources" />
920 dev 573
 
574
	<!-- ========== Plug-Ins Configuration ================================== -->
575
 
576
	<plug-in className="org.apache.struts.validator.ValidatorPlugIn">
577
		<set-property property="pathnames"
578
			value="/WEB-INF/validator-rules.xml,/WEB-INF/validation.xml" />
579
	</plug-in>
580
 
581
</struts-config>