Subversion Repositories general

Rev

Rev 1048 | Rev 1050 | 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
		<exception
1044 dev 164
			key="GeneralException"
165
			type="java.lang.Exception"
166
			handler="ak.hostadmiral.core.action.GeneralExceptionHandler"
920 dev 167
		/>
168
	</global-exceptions>
169
 
170
	<global-forwards>
171
		<forward
172
			name="error"
173
			path="/error.jsp"
174
		/>
1044 dev 175
 
176
		<forward
177
			name="accessDenied"
178
			path="/accessDenied.jsp"
179
		/>
180
 
181
		<forward
182
			name="generalError"
183
			path="/generalError.jsp"
184
		/>
920 dev 185
	</global-forwards>
186
 
187
	<action-mappings>
188
		<action
189
			path="/index"
924 dev 190
			type="ak.hostadmiral.core.action.IndexAction"
920 dev 191
		>
192
			<forward name="success" path="/index.jsp" />
193
		</action>
194
 
195
		<!-- == system ============================================================================ -->
196
 
197
		<action
198
			path="/system/login"
1014 dev 199
			type="ak.hostadmiral.core.action.LoginAction"
200
			parameter="show"
201
		>
202
			<forward name="default" path="/system/login.jsp" />
203
		</action>
920 dev 204
 
205
		<action
206
			path="/system/login/submit"
924 dev 207
			type="ak.hostadmiral.core.action.LoginAction"
1014 dev 208
			parameter="submit"
958 dev 209
			name="LoginForm"
920 dev 210
			validate="true"
211
			scope="request"
212
			input="/system/login.jsp"
213
		>
214
			<forward name="default" path="/index.do" redirect="true" />
215
		</action>
216
 
217
		<action
218
			path="/system/logout"
924 dev 219
			type="ak.hostadmiral.core.action.LogoutAction"
920 dev 220
		>
221
			<forward name="default" path="/system/logout.jsp" />
222
		</action>
223
 
224
		<!-- == user ============================================================================== -->
225
 
226
		<action
227
			path="/user/password/show"
924 dev 228
			type="ak.hostadmiral.core.action.ChangePasswordAction"
920 dev 229
			parameter="first"
230
		>
231
			<forward name="default" path="/user/password/change.jsp" />
232
		</action>
233
 
234
		<action
235
			path="/user/password/submit"
924 dev 236
			type="ak.hostadmiral.core.action.ChangePasswordAction"
920 dev 237
			parameter="submit"
958 dev 238
			name="ChangePasswordForm"
920 dev 239
			validate="true"
240
			scope="request"
241
			input="/user/password/change.jsp"
242
		>
243
		</action>
244
 
245
		<action
949 dev 246
			path="/user/logins"
247
			type="ak.hostadmiral.core.action.UserLoginsAction"
958 dev 248
			name="UserLoginsForm"
949 dev 249
			validate="true"
250
			scope="request"
251
		>
252
			<forward name="default" path="/user/logins.jsp" />
253
		</action>
254
 
255
		<action
256
			path="/user/failedLogins"
257
			type="ak.hostadmiral.core.action.FailedLoginsAction"
258
		>
259
			<forward name="default" path="/user/failedLogins.jsp" />
260
		</action>
261
 
262
		<action
920 dev 263
			path="/user/list"
924 dev 264
			type="ak.hostadmiral.core.action.UserAction"
920 dev 265
			parameter="list"
1028 dev 266
			name="UserListForm"
267
			validate="true"
268
			scope="request"
920 dev 269
		>
270
			<forward name="default" path="/user/list.jsp" />
271
		</action>
272
 
273
		<action
946 dev 274
			path="/user/deleting"
275
			type="ak.hostadmiral.core.action.UserAction"
276
			parameter="deleting"
958 dev 277
			name="UserForm"
946 dev 278
			validate="true"
279
			scope="request"
280
		>
281
			<forward name="default" path="/deleting.jsp" />
282
		</action>
283
 
284
		<action
920 dev 285
			path="/user/delete"
924 dev 286
			type="ak.hostadmiral.core.action.UserAction"
920 dev 287
			parameter="delete"
958 dev 288
			name="UserForm"
920 dev 289
			validate="true"
290
			scope="request"
291
		>
292
		</action>
293
 
294
		<action
295
			path="/user/edit"
924 dev 296
			type="ak.hostadmiral.core.action.UserAction"
920 dev 297
			parameter="edit"
958 dev 298
			name="UserForm"
920 dev 299
			validate="true"
300
			scope="request"
301
		>
950 dev 302
			<forward name="default"  path="/user/edit.jsp"     />
303
			<forward name="view"     path="/user/view.jsp"     />
920 dev 304
		</action>
305
 
306
		<action
307
			path="/user/submit"
924 dev 308
			type="ak.hostadmiral.core.action.UserAction"
920 dev 309
			parameter="submit"
958 dev 310
			name="UserEditForm"
920 dev 311
			validate="true"
312
			scope="request"
313
			input="/user/edit.jsp"
314
		>
315
		</action>
316
 
950 dev 317
		<action
318
			path="/user/partedit"
319
			type="ak.hostadmiral.core.action.UserAction"
320
			parameter="partedit"
958 dev 321
			name="UserForm"
950 dev 322
			validate="true"
323
			scope="request"
324
		>
325
			<forward name="default"  path="/user/partedit.jsp" />
326
		</action>
327
 
328
		<action
329
			path="/user/partsubmit"
330
			type="ak.hostadmiral.core.action.UserAction"
331
			parameter="partsubmit"
958 dev 332
			name="UserPartEditForm"
950 dev 333
			validate="true"
334
			scope="request"
335
			input="/user/partedit.jsp"
336
		>
337
		</action>
338
 
920 dev 339
		<!-- == system user ======================================================================= -->
340
 
341
		<action
342
			path="/user/system/list"
924 dev 343
			type="ak.hostadmiral.core.action.SystemUserAction"
920 dev 344
			parameter="list"
1028 dev 345
			name="SystemUserListForm"
346
			validate="true"
347
			scope="request"
920 dev 348
		>
349
			<forward name="default" path="/user/system/list.jsp" />
350
		</action>
351
 
352
		<action
1012 dev 353
			path="/user/system/deleting"
354
			type="ak.hostadmiral.core.action.SystemUserAction"
355
			parameter="deleting"
356
			name="SystemUserForm"
357
			validate="true"
358
			scope="request"
359
		>
360
			<forward name="default" path="/deleting.jsp" />
361
		</action>
362
 
363
		<action
920 dev 364
			path="/user/system/delete"
924 dev 365
			type="ak.hostadmiral.core.action.SystemUserAction"
920 dev 366
			parameter="delete"
958 dev 367
			name="SystemUserForm"
920 dev 368
			validate="true"
369
			scope="request"
370
		>
371
		</action>
372
 
373
		<action
374
			path="/user/system/edit"
924 dev 375
			type="ak.hostadmiral.core.action.SystemUserAction"
920 dev 376
			parameter="edit"
958 dev 377
			name="SystemUserForm"
920 dev 378
			validate="true"
379
			scope="request"
380
		>
381
			<forward name="default" path="/user/system/edit.jsp" />
923 dev 382
			<forward name="view"    path="/user/system/view.jsp" />
920 dev 383
		</action>
384
 
385
		<action
386
			path="/user/system/submit"
924 dev 387
			type="ak.hostadmiral.core.action.SystemUserAction"
920 dev 388
			parameter="submit"
958 dev 389
			name="SystemUserEditForm"
920 dev 390
			validate="true"
391
			scope="request"
392
			input="/user/system/edit.jsp"
393
		>
394
		</action>
395
 
1012 dev 396
		<!-- == inet domain ======================================================================= -->
920 dev 397
 
398
		<action
399
			path="/domain/list"
924 dev 400
			type="ak.hostadmiral.core.action.InetDomainAction"
920 dev 401
			parameter="list"
1028 dev 402
			name="InetDomainListForm"
403
			validate="true"
404
			scope="request"
920 dev 405
		>
406
			<forward name="default" path="/domain/list.jsp" />
407
		</action>
408
 
409
		<action
1012 dev 410
			path="/domain/deleting"
411
			type="ak.hostadmiral.core.action.InetDomainAction"
412
			parameter="deleting"
413
			name="InetDomainForm"
414
			validate="true"
415
			scope="request"
416
		>
417
			<forward name="default" path="/deleting.jsp" />
418
		</action>
419
 
420
		<action
920 dev 421
			path="/domain/delete"
924 dev 422
			type="ak.hostadmiral.core.action.InetDomainAction"
920 dev 423
			parameter="delete"
958 dev 424
			name="InetDomainForm"
920 dev 425
			validate="true"
426
			scope="request"
427
		>
428
		</action>
429
 
430
		<action
431
			path="/domain/edit"
924 dev 432
			type="ak.hostadmiral.core.action.InetDomainAction"
920 dev 433
			parameter="edit"
958 dev 434
			name="InetDomainForm"
920 dev 435
			validate="true"
436
			scope="request"
437
		>
438
			<forward name="default" path="/domain/edit.jsp" />
923 dev 439
			<forward name="view"    path="/domain/view.jsp" />
920 dev 440
		</action>
441
 
442
		<action
443
			path="/domain/submit"
924 dev 444
			type="ak.hostadmiral.core.action.InetDomainAction"
920 dev 445
			parameter="submit"
958 dev 446
			name="InetDomainEditForm"
920 dev 447
			validate="true"
448
			scope="request"
449
			input="/domain/edit.jsp"
450
		>
451
		</action>
452
 
453
		<!-- == mail boxes ======================================================================== -->
454
 
455
		<action
456
			path="/mail/box/list"
924 dev 457
			type="ak.hostadmiral.core.action.MailboxAction"
920 dev 458
			parameter="list"
1020 dev 459
			name="MailboxListForm"
460
			validate="true"
461
			scope="request"
920 dev 462
		>
463
			<forward name="default" path="/mail/box/list.jsp" />
464
		</action>
465
 
466
		<action
1012 dev 467
			path="/mail/box/deleting"
468
			type="ak.hostadmiral.core.action.MailboxAction"
469
			parameter="deleting"
470
			name="MailboxForm"
471
			validate="true"
472
			scope="request"
473
		>
474
			<forward name="default" path="/deleting.jsp" />
475
		</action>
476
 
477
		<action
920 dev 478
			path="/mail/box/delete"
924 dev 479
			type="ak.hostadmiral.core.action.MailboxAction"
920 dev 480
			parameter="delete"
958 dev 481
			name="MailboxForm"
920 dev 482
			validate="true"
483
			scope="request"
484
		>
485
		</action>
486
 
487
		<action
488
			path="/mail/box/edit"
924 dev 489
			type="ak.hostadmiral.core.action.MailboxAction"
920 dev 490
			parameter="edit"
958 dev 491
			name="MailboxForm"
920 dev 492
			validate="true"
493
			scope="request"
494
		>
495
			<forward name="default" path="/mail/box/edit.jsp" />
923 dev 496
			<forward name="view"    path="/mail/box/view.jsp" />
920 dev 497
		</action>
498
 
499
		<action
500
			path="/mail/box/submit"
924 dev 501
			type="ak.hostadmiral.core.action.MailboxAction"
920 dev 502
			parameter="submit"
958 dev 503
			name="MailboxEditForm"
920 dev 504
			validate="true"
505
			scope="request"
506
			input="/mail/box/edit.jsp"
507
		>
508
		</action>
509
 
510
		<!-- == mail aliases ====================================================================== -->
511
 
512
		<action
513
			path="/mail/alias/list"
924 dev 514
			type="ak.hostadmiral.core.action.MailAliasAction"
920 dev 515
			parameter="list"
1028 dev 516
			name="MailAliasListForm"
517
			validate="true"
518
			scope="request"
920 dev 519
		>
520
			<forward name="default" path="/mail/alias/list.jsp" />
521
		</action>
522
 
523
		<action
1012 dev 524
			path="/mail/alias/deleting"
525
			type="ak.hostadmiral.core.action.MailAliasAction"
526
			parameter="deleting"
527
			name="MailAliasForm"
528
			validate="true"
529
			scope="request"
530
		>
531
			<forward name="default" path="/deleting.jsp" />
532
		</action>
533
 
534
		<action
920 dev 535
			path="/mail/alias/delete"
924 dev 536
			type="ak.hostadmiral.core.action.MailAliasAction"
920 dev 537
			parameter="delete"
958 dev 538
			name="MailAliasForm"
920 dev 539
			validate="true"
540
			scope="request"
541
		>
542
		</action>
543
 
544
		<action
545
			path="/mail/alias/edit"
924 dev 546
			type="ak.hostadmiral.core.action.MailAliasAction"
920 dev 547
			parameter="edit"
958 dev 548
			name="MailAliasForm"
920 dev 549
			validate="true"
550
			scope="request"
551
		>
923 dev 552
			<forward name="default"   path="/mail/alias/edit.jsp" />
553
			<forward name="editdests" path="/mail/alias/editdests.jsp" />
554
			<forward name="view"      path="/mail/alias/view.jsp" />
920 dev 555
		</action>
556
 
557
		<action
558
			path="/mail/alias/submit"
924 dev 559
			type="ak.hostadmiral.core.action.MailAliasAction"
920 dev 560
			parameter="submit"
958 dev 561
			name="MailAliasEditForm"
920 dev 562
			validate="true"
563
			scope="request"
564
			input="/mail/alias/edit.do"
565
		>
923 dev 566
			<forward name="default"   path="/mail/alias/edit.jsp" />
567
			<forward name="editdests" path="/mail/alias/editdests.jsp" />
568
			<forward name="view"      path="/mail/alias/view.jsp" />
920 dev 569
		</action>
570
 
571
	</action-mappings>
572
 
573
	<controller processorClass="ak.strutsx.RequestProcessorX" />
574
 
1049 dev 575
	<message-resources
576
		factory="ak.hostadmiral.struts.MultiPropertyMessageResourcesFactory"
577
		parameter="ak.hostadmiral.core.CoreResources;ak.hostadmiral.core.PageResources"
578
	/>
920 dev 579
 
580
	<!-- ========== Plug-Ins Configuration ================================== -->
581
 
582
	<plug-in className="org.apache.struts.validator.ValidatorPlugIn">
583
		<set-property property="pathnames"
584
			value="/WEB-INF/validator-rules.xml,/WEB-INF/validation.xml" />
585
	</plug-in>
586
 
587
</struts-config>