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