Subversion Repositories general

Rev

Details | Last modification | View Log | RSS feed

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