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
924 dev 31
				name="ak.hostadmiral.core.form.UserEditForm"
32
				type="ak.hostadmiral.core.form.UserPasswordForm">
920 dev 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
924 dev 44
				name="ak.hostadmiral.core.form.SystemUserForm"
920 dev 45
				type="org.apache.struts.validator.DynaValidatorForm">
46
			<form-property name="id"          type="java.lang.String"   />
47
		</form-bean>
48
 
49
		<form-bean
924 dev 50
				name="ak.hostadmiral.core.form.SystemUserEditForm"
920 dev 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
924 dev 61
				name="ak.hostadmiral.core.form.InetDomainForm"
920 dev 62
				type="org.apache.struts.validator.DynaValidatorForm">
63
			<form-property name="id"          type="java.lang.String"   />
64
		</form-bean>
65
 
66
		<form-bean
924 dev 67
				name="ak.hostadmiral.core.form.InetDomainEditForm"
920 dev 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
924 dev 77
				name="ak.hostadmiral.core.form.MailboxForm"
920 dev 78
				type="org.apache.struts.validator.DynaValidatorForm">
79
			<form-property name="id"          type="java.lang.String"   />
80
		</form-bean>
81
 
82
		<form-bean
924 dev 83
				name="ak.hostadmiral.core.form.MailboxEditForm"
84
				type="ak.hostadmiral.core.form.UserPasswordForm">
920 dev 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
924 dev 99
				name="ak.hostadmiral.core.form.MailAliasForm"
920 dev 100
				type="org.apache.struts.validator.DynaValidatorForm">
101
			<form-property name="id"          type="java.lang.String"   />
102
		</form-bean>
103
 
104
		<form-bean
924 dev 105
				name="ak.hostadmiral.core.form.MailAliasEditForm"
920 dev 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"   />
924 dev 113
			<form-property name="dests"       type="ak.hostadmiral.core.form.MailAliasDestBean[]"
920 dev 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"
924 dev 128
			type="ak.hostadmiral.util.UserException"
129
			handler="ak.hostadmiral.core.action.UserExceptionHandler"
920 dev 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"
924 dev 143
			type="ak.hostadmiral.core.action.IndexAction"
920 dev 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"
924 dev 156
			type="ak.hostadmiral.core.action.LoginAction"
157
			name="ak.hostadmiral.core.form.LoginForm"
920 dev 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"
924 dev 167
			type="ak.hostadmiral.core.action.LogoutAction"
920 dev 168
		>
169
			<forward name="default" path="/system/logout.jsp" />
170
		</action>
171
 
172
		<!-- == user ============================================================================== -->
173
 
174
		<action
175
			path="/user/password/show"
924 dev 176
			type="ak.hostadmiral.core.action.ChangePasswordAction"
920 dev 177
			parameter="first"
178
		>
179
			<forward name="default" path="/user/password/change.jsp" />
180
		</action>
181
 
182
		<action
183
			path="/user/password/submit"
924 dev 184
			type="ak.hostadmiral.core.action.ChangePasswordAction"
920 dev 185
			parameter="submit"
924 dev 186
			name="ak.hostadmiral.core.form.ChangePasswordForm"
920 dev 187
			validate="true"
188
			scope="request"
189
			input="/user/password/change.jsp"
190
		>
191
		</action>
192
 
193
		<action
194
			path="/user/list"
924 dev 195
			type="ak.hostadmiral.core.action.UserAction"
920 dev 196
			parameter="list"
197
		>
198
			<forward name="default" path="/user/list.jsp" />
199
		</action>
200
 
201
		<action
946 dev 202
			path="/user/deleting"
203
			type="ak.hostadmiral.core.action.UserAction"
204
			parameter="deleting"
205
			name="ak.hostadmiral.core.form.UserForm"
206
			validate="true"
207
			scope="request"
208
		>
209
			<forward name="default" path="/deleting.jsp" />
210
		</action>
211
 
212
		<action
920 dev 213
			path="/user/delete"
924 dev 214
			type="ak.hostadmiral.core.action.UserAction"
920 dev 215
			parameter="delete"
924 dev 216
			name="ak.hostadmiral.core.form.UserForm"
920 dev 217
			validate="true"
218
			scope="request"
219
		>
220
		</action>
221
 
222
		<action
223
			path="/user/edit"
924 dev 224
			type="ak.hostadmiral.core.action.UserAction"
920 dev 225
			parameter="edit"
924 dev 226
			name="ak.hostadmiral.core.form.UserForm"
920 dev 227
			validate="true"
228
			scope="request"
229
		>
230
			<forward name="default" path="/user/edit.jsp" />
923 dev 231
			<forward name="view"    path="/user/view.jsp" />
920 dev 232
		</action>
233
 
234
		<action
235
			path="/user/submit"
924 dev 236
			type="ak.hostadmiral.core.action.UserAction"
920 dev 237
			parameter="submit"
924 dev 238
			name="ak.hostadmiral.core.form.UserEditForm"
920 dev 239
			validate="true"
240
			scope="request"
241
			input="/user/edit.jsp"
242
		>
243
		</action>
244
 
245
		<!-- == system user ======================================================================= -->
246
 
247
		<action
248
			path="/user/system/list"
924 dev 249
			type="ak.hostadmiral.core.action.SystemUserAction"
920 dev 250
			parameter="list"
251
		>
252
			<forward name="default" path="/user/system/list.jsp" />
253
		</action>
254
 
255
		<action
256
			path="/user/system/delete"
924 dev 257
			type="ak.hostadmiral.core.action.SystemUserAction"
920 dev 258
			parameter="delete"
924 dev 259
			name="ak.hostadmiral.core.form.SystemUserForm"
920 dev 260
			validate="true"
261
			scope="request"
262
		>
263
		</action>
264
 
265
		<action
266
			path="/user/system/edit"
924 dev 267
			type="ak.hostadmiral.core.action.SystemUserAction"
920 dev 268
			parameter="edit"
924 dev 269
			name="ak.hostadmiral.core.form.SystemUserForm"
920 dev 270
			validate="true"
271
			scope="request"
272
		>
273
			<forward name="default" path="/user/system/edit.jsp" />
923 dev 274
			<forward name="view"    path="/user/system/view.jsp" />
920 dev 275
		</action>
276
 
277
		<action
278
			path="/user/system/submit"
924 dev 279
			type="ak.hostadmiral.core.action.SystemUserAction"
920 dev 280
			parameter="submit"
924 dev 281
			name="ak.hostadmiral.core.form.SystemUserEditForm"
920 dev 282
			validate="true"
283
			scope="request"
284
			input="/user/system/edit.jsp"
285
		>
286
		</action>
287
 
288
		<!-- == system user ======================================================================= -->
289
 
290
		<action
291
			path="/domain/list"
924 dev 292
			type="ak.hostadmiral.core.action.InetDomainAction"
920 dev 293
			parameter="list"
294
		>
295
			<forward name="default" path="/domain/list.jsp" />
296
		</action>
297
 
298
		<action
299
			path="/domain/delete"
924 dev 300
			type="ak.hostadmiral.core.action.InetDomainAction"
920 dev 301
			parameter="delete"
924 dev 302
			name="ak.hostadmiral.core.form.InetDomainForm"
920 dev 303
			validate="true"
304
			scope="request"
305
		>
306
		</action>
307
 
308
		<action
309
			path="/domain/edit"
924 dev 310
			type="ak.hostadmiral.core.action.InetDomainAction"
920 dev 311
			parameter="edit"
924 dev 312
			name="ak.hostadmiral.core.form.InetDomainForm"
920 dev 313
			validate="true"
314
			scope="request"
315
		>
316
			<forward name="default" path="/domain/edit.jsp" />
923 dev 317
			<forward name="view"    path="/domain/view.jsp" />
920 dev 318
		</action>
319
 
320
		<action
321
			path="/domain/submit"
924 dev 322
			type="ak.hostadmiral.core.action.InetDomainAction"
920 dev 323
			parameter="submit"
924 dev 324
			name="ak.hostadmiral.core.form.InetDomainEditForm"
920 dev 325
			validate="true"
326
			scope="request"
327
			input="/domain/edit.jsp"
328
		>
329
		</action>
330
 
331
		<!-- == mail boxes ======================================================================== -->
332
 
333
		<action
334
			path="/mail/box/list"
924 dev 335
			type="ak.hostadmiral.core.action.MailboxAction"
920 dev 336
			parameter="list"
337
		>
338
			<forward name="default" path="/mail/box/list.jsp" />
339
		</action>
340
 
341
		<action
342
			path="/mail/box/delete"
924 dev 343
			type="ak.hostadmiral.core.action.MailboxAction"
920 dev 344
			parameter="delete"
924 dev 345
			name="ak.hostadmiral.core.form.MailboxForm"
920 dev 346
			validate="true"
347
			scope="request"
348
		>
349
		</action>
350
 
351
		<action
352
			path="/mail/box/edit"
924 dev 353
			type="ak.hostadmiral.core.action.MailboxAction"
920 dev 354
			parameter="edit"
924 dev 355
			name="ak.hostadmiral.core.form.MailboxForm"
920 dev 356
			validate="true"
357
			scope="request"
358
		>
359
			<forward name="default" path="/mail/box/edit.jsp" />
923 dev 360
			<forward name="view"    path="/mail/box/view.jsp" />
920 dev 361
		</action>
362
 
363
		<action
364
			path="/mail/box/submit"
924 dev 365
			type="ak.hostadmiral.core.action.MailboxAction"
920 dev 366
			parameter="submit"
924 dev 367
			name="ak.hostadmiral.core.form.MailboxEditForm"
920 dev 368
			validate="true"
369
			scope="request"
370
			input="/mail/box/edit.jsp"
371
		>
372
		</action>
373
 
374
		<!-- == mail aliases ====================================================================== -->
375
 
376
		<action
377
			path="/mail/alias/list"
924 dev 378
			type="ak.hostadmiral.core.action.MailAliasAction"
920 dev 379
			parameter="list"
380
		>
381
			<forward name="default" path="/mail/alias/list.jsp" />
382
		</action>
383
 
384
		<action
385
			path="/mail/alias/delete"
924 dev 386
			type="ak.hostadmiral.core.action.MailAliasAction"
920 dev 387
			parameter="delete"
924 dev 388
			name="ak.hostadmiral.core.form.MailAliasForm"
920 dev 389
			validate="true"
390
			scope="request"
391
		>
392
		</action>
393
 
394
		<action
395
			path="/mail/alias/edit"
924 dev 396
			type="ak.hostadmiral.core.action.MailAliasAction"
920 dev 397
			parameter="edit"
924 dev 398
			name="ak.hostadmiral.core.form.MailAliasForm"
920 dev 399
			validate="true"
400
			scope="request"
401
		>
923 dev 402
			<forward name="default"   path="/mail/alias/edit.jsp" />
403
			<forward name="editdests" path="/mail/alias/editdests.jsp" />
404
			<forward name="view"      path="/mail/alias/view.jsp" />
920 dev 405
		</action>
406
 
407
		<action
408
			path="/mail/alias/submit"
924 dev 409
			type="ak.hostadmiral.core.action.MailAliasAction"
920 dev 410
			parameter="submit"
924 dev 411
			name="ak.hostadmiral.core.form.MailAliasEditForm"
920 dev 412
			validate="true"
413
			scope="request"
414
			input="/mail/alias/edit.do"
415
		>
923 dev 416
			<forward name="default"   path="/mail/alias/edit.jsp" />
417
			<forward name="editdests" path="/mail/alias/editdests.jsp" />
418
			<forward name="view"      path="/mail/alias/view.jsp" />
920 dev 419
		</action>
420
 
421
	</action-mappings>
422
 
423
	<controller processorClass="ak.strutsx.RequestProcessorX" />
424
 
924 dev 425
	<message-resources parameter="ak.hostadmiral.core.CoreResources" />
920 dev 426
 
427
	<!-- ========== Plug-Ins Configuration ================================== -->
428
 
429
	<plug-in className="org.apache.struts.validator.ValidatorPlugIn">
430
		<set-property property="pathnames"
431
			value="/WEB-INF/validator-rules.xml,/WEB-INF/validation.xml" />
432
	</plug-in>
433
 
434
</struts-config>