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