0,0 → 1,588 |
<?xml version="1.0" encoding="ISO-8859-1" ?> |
|
<!DOCTYPE struts-config PUBLIC |
"-//Apache Software Foundation//DTD Struts Configuration 1.1//EN" |
"http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd"> |
|
<struts-config> |
<form-beans> |
<form-bean |
name="LoginForm" |
type="org.apache.struts.validator.DynaValidatorForm"> |
<form-property name="login" type="java.lang.String" /> |
<form-property name="password" type="java.lang.String" /> |
</form-bean> |
|
<form-bean |
name="ChangePasswordForm" |
type="ak.hostadmiral.core.form.UserPasswordForm"> |
<form-property name="oldpassword" type="java.lang.String" /> |
<form-property name="password" type="java.lang.String" /> |
<form-property name="password2" type="java.lang.String" /> |
</form-bean> |
|
<form-bean |
name="UserListForm" |
type="org.apache.struts.validator.DynaValidatorForm"> |
<form-property name="pg" type="java.lang.String" /> |
</form-bean> |
|
<form-bean |
name="UserForm" |
type="org.apache.struts.validator.DynaValidatorForm"> |
<form-property name="id" type="java.lang.String" /> |
</form-bean> |
|
<form-bean |
name="UserLoginsForm" |
type="org.apache.struts.validator.DynaValidatorForm"> |
<form-property name="id" type="java.lang.String" /> |
<form-property name="pg" type="java.lang.String" /> |
</form-bean> |
|
<form-bean |
name="UserEditForm" |
type="ak.hostadmiral.core.form.UserPasswordForm"> |
<form-property name="id" type="java.lang.String" /> |
<form-property name="login" type="java.lang.String" /> |
<form-property name="password" type="java.lang.String" /> |
<form-property name="password2" type="java.lang.String" /> |
<form-property name="boss" type="java.lang.String" /> |
<form-property name="superuser" type="java.lang.Boolean" /> |
<form-property name="locale" type="java.lang.String" /> |
<form-property name="enabled" type="java.lang.Boolean" /> |
<form-property name="comment" type="java.lang.String" /> |
</form-bean> |
|
<form-bean |
name="UserPartEditForm" |
type="org.apache.struts.validator.DynaValidatorForm"> |
<form-property name="id" type="java.lang.String" /> |
<form-property name="locale" type="java.lang.String" /> |
</form-bean> |
|
<form-bean |
name="SystemUserListForm" |
type="org.apache.struts.validator.DynaValidatorForm"> |
<form-property name="pg" type="java.lang.String" /> |
</form-bean> |
|
<form-bean |
name="SystemUserForm" |
type="org.apache.struts.validator.DynaValidatorForm"> |
<form-property name="id" type="java.lang.String" /> |
</form-bean> |
|
<form-bean |
name="SystemUserEditForm" |
type="org.apache.struts.validator.DynaValidatorForm"> |
<form-property name="id" type="java.lang.String" /> |
<form-property name="uid" type="java.lang.String" /> |
<form-property name="name" type="java.lang.String" /> |
<form-property name="owner" type="java.lang.String" /> |
<form-property name="enabled" type="java.lang.Boolean" /> |
<form-property name="comment" type="java.lang.String" /> |
</form-bean> |
|
<form-bean |
name="InetDomainListForm" |
type="org.apache.struts.validator.DynaValidatorForm"> |
<form-property name="pg" type="java.lang.String" /> |
</form-bean> |
|
<form-bean |
name="InetDomainForm" |
type="org.apache.struts.validator.DynaValidatorForm"> |
<form-property name="id" type="java.lang.String" /> |
</form-bean> |
|
<form-bean |
name="InetDomainEditForm" |
type="org.apache.struts.validator.DynaValidatorForm"> |
<form-property name="id" type="java.lang.String" /> |
<form-property name="name" type="java.lang.String" /> |
<form-property name="owner" type="java.lang.String" /> |
<form-property name="enabled" type="java.lang.Boolean" /> |
<form-property name="comment" type="java.lang.String" /> |
</form-bean> |
|
<form-bean |
name="MailboxListForm" |
type="org.apache.struts.validator.DynaValidatorForm"> |
<form-property name="pg" type="java.lang.String" /> |
</form-bean> |
|
<form-bean |
name="MailboxForm" |
type="org.apache.struts.validator.DynaValidatorForm"> |
<form-property name="id" type="java.lang.String" /> |
</form-bean> |
|
<form-bean |
name="MailboxEditForm" |
type="ak.hostadmiral.core.form.UserPasswordForm"> |
<form-property name="id" type="java.lang.String" /> |
<form-property name="login" type="java.lang.String" /> |
<form-property name="password" type="java.lang.String" /> |
<form-property name="password2" type="java.lang.String" /> |
<form-property name="domain" type="java.lang.String" /> |
<form-property name="owner" type="java.lang.String" /> |
<form-property name="viruscheck" type="java.lang.Boolean" /> |
<form-property name="spamcheck" type="java.lang.Boolean" /> |
<form-property name="systemuser" type="java.lang.String" /> |
<form-property name="enabled" type="java.lang.Boolean" /> |
<form-property name="comment" type="java.lang.String" /> |
</form-bean> |
|
<form-bean |
name="MailAliasListForm" |
type="org.apache.struts.validator.DynaValidatorForm"> |
<form-property name="pg" type="java.lang.String" /> |
</form-bean> |
|
<form-bean |
name="MailAliasForm" |
type="org.apache.struts.validator.DynaValidatorForm"> |
<form-property name="id" type="java.lang.String" /> |
</form-bean> |
|
<form-bean |
name="MailAliasEditForm" |
type="ak.strutsx.ResizeableDynaValidatorForm"> |
<form-property name="id" type="java.lang.String" /> |
<form-property name="address" type="java.lang.String" /> |
<form-property name="domain" type="java.lang.String" /> |
<form-property name="owner" type="java.lang.String" /> |
<form-property name="enabled" type="java.lang.Boolean" /> |
<form-property name="comment" type="java.lang.String" /> |
<form-property name="dests" type="ak.hostadmiral.core.form.MailAliasDestBean[]" |
size="1" /> |
</form-bean> |
</form-beans> |
|
<global-exceptions> |
<exception |
key="GeneralException" |
type="java.lang.Exception" |
handler="ak.hostadmiral.core.action.GeneralExceptionHandler" |
/> |
</global-exceptions> |
|
<global-forwards> |
<forward |
name="error" |
path="/error.jsp" |
/> |
|
<forward |
name="accessDenied" |
path="/accessDenied.jsp" |
/> |
|
<forward |
name="generalError" |
path="/generalError.jsp" |
/> |
</global-forwards> |
|
<action-mappings> |
<action |
path="/index" |
type="ak.hostadmiral.core.action.IndexAction" |
> |
<forward name="success" path="/index.jsp" /> |
</action> |
|
<!-- == system ============================================================================ --> |
|
<action |
path="/system/login" |
type="ak.hostadmiral.core.action.LoginAction" |
parameter="show" |
> |
<forward name="default" path="/system/login.jsp" /> |
</action> |
|
<action |
path="/system/login/submit" |
type="ak.hostadmiral.core.action.LoginAction" |
parameter="submit" |
name="LoginForm" |
validate="true" |
scope="request" |
input="/system/login.jsp" |
> |
<forward name="default" path="/index.do" redirect="true" /> |
</action> |
|
<action |
path="/system/logout" |
type="ak.hostadmiral.core.action.LogoutAction" |
> |
<forward name="default" path="/system/logout.jsp" /> |
</action> |
|
<!-- == user ============================================================================== --> |
|
<action |
path="/user/password/show" |
type="ak.hostadmiral.core.action.ChangePasswordAction" |
parameter="first" |
> |
<forward name="default" path="/user/password/change.jsp" /> |
</action> |
|
<action |
path="/user/password/submit" |
type="ak.hostadmiral.core.action.ChangePasswordAction" |
parameter="submit" |
name="ChangePasswordForm" |
validate="true" |
scope="request" |
input="/user/password/change.jsp" |
> |
</action> |
|
<action |
path="/user/logins" |
type="ak.hostadmiral.core.action.UserLoginsAction" |
name="UserLoginsForm" |
validate="true" |
scope="request" |
> |
<forward name="default" path="/user/logins.jsp" /> |
</action> |
|
<action |
path="/user/failedLogins" |
type="ak.hostadmiral.core.action.FailedLoginsAction" |
> |
<forward name="default" path="/user/failedLogins.jsp" /> |
</action> |
|
<action |
path="/user/list" |
type="ak.hostadmiral.core.action.UserAction" |
parameter="list" |
name="UserListForm" |
validate="true" |
scope="request" |
> |
<forward name="default" path="/user/list.jsp" /> |
</action> |
|
<action |
path="/user/deleting" |
type="ak.hostadmiral.core.action.UserAction" |
parameter="deleting" |
name="UserForm" |
validate="true" |
scope="request" |
> |
<forward name="default" path="/deleting.jsp" /> |
</action> |
|
<action |
path="/user/delete" |
type="ak.hostadmiral.core.action.UserAction" |
parameter="delete" |
name="UserForm" |
validate="true" |
scope="request" |
> |
</action> |
|
<action |
path="/user/edit" |
type="ak.hostadmiral.core.action.UserAction" |
parameter="edit" |
name="UserForm" |
validate="true" |
scope="request" |
> |
<forward name="default" path="/user/edit.jsp" /> |
<forward name="view" path="/user/view.jsp" /> |
</action> |
|
<action |
path="/user/submit" |
type="ak.hostadmiral.core.action.UserAction" |
parameter="submit" |
name="UserEditForm" |
validate="true" |
scope="request" |
input="/user/edit.jsp" |
> |
</action> |
|
<action |
path="/user/partedit" |
type="ak.hostadmiral.core.action.UserAction" |
parameter="partedit" |
name="UserForm" |
validate="true" |
scope="request" |
> |
<forward name="default" path="/user/partedit.jsp" /> |
</action> |
|
<action |
path="/user/partsubmit" |
type="ak.hostadmiral.core.action.UserAction" |
parameter="partsubmit" |
name="UserPartEditForm" |
validate="true" |
scope="request" |
input="/user/partedit.jsp" |
> |
</action> |
|
<!-- == system user ======================================================================= --> |
|
<action |
path="/user/system/list" |
type="ak.hostadmiral.core.action.SystemUserAction" |
parameter="list" |
name="SystemUserListForm" |
validate="true" |
scope="request" |
> |
<forward name="default" path="/user/system/list.jsp" /> |
</action> |
|
<action |
path="/user/system/deleting" |
type="ak.hostadmiral.core.action.SystemUserAction" |
parameter="deleting" |
name="SystemUserForm" |
validate="true" |
scope="request" |
> |
<forward name="default" path="/deleting.jsp" /> |
</action> |
|
<action |
path="/user/system/delete" |
type="ak.hostadmiral.core.action.SystemUserAction" |
parameter="delete" |
name="SystemUserForm" |
validate="true" |
scope="request" |
> |
</action> |
|
<action |
path="/user/system/edit" |
type="ak.hostadmiral.core.action.SystemUserAction" |
parameter="edit" |
name="SystemUserForm" |
validate="true" |
scope="request" |
> |
<forward name="default" path="/user/system/edit.jsp" /> |
<forward name="view" path="/user/system/view.jsp" /> |
</action> |
|
<action |
path="/user/system/submit" |
type="ak.hostadmiral.core.action.SystemUserAction" |
parameter="submit" |
name="SystemUserEditForm" |
validate="true" |
scope="request" |
input="/user/system/edit.jsp" |
> |
</action> |
|
<!-- == inet domain ======================================================================= --> |
|
<action |
path="/domain/list" |
type="ak.hostadmiral.core.action.InetDomainAction" |
parameter="list" |
name="InetDomainListForm" |
validate="true" |
scope="request" |
> |
<forward name="default" path="/domain/list.jsp" /> |
</action> |
|
<action |
path="/domain/deleting" |
type="ak.hostadmiral.core.action.InetDomainAction" |
parameter="deleting" |
name="InetDomainForm" |
validate="true" |
scope="request" |
> |
<forward name="default" path="/deleting.jsp" /> |
</action> |
|
<action |
path="/domain/delete" |
type="ak.hostadmiral.core.action.InetDomainAction" |
parameter="delete" |
name="InetDomainForm" |
validate="true" |
scope="request" |
> |
</action> |
|
<action |
path="/domain/edit" |
type="ak.hostadmiral.core.action.InetDomainAction" |
parameter="edit" |
name="InetDomainForm" |
validate="true" |
scope="request" |
> |
<forward name="default" path="/domain/edit.jsp" /> |
<forward name="view" path="/domain/view.jsp" /> |
</action> |
|
<action |
path="/domain/submit" |
type="ak.hostadmiral.core.action.InetDomainAction" |
parameter="submit" |
name="InetDomainEditForm" |
validate="true" |
scope="request" |
input="/domain/edit.jsp" |
> |
</action> |
|
<!-- == mail boxes ======================================================================== --> |
|
<action |
path="/mail/box/list" |
type="ak.hostadmiral.core.action.MailboxAction" |
parameter="list" |
name="MailboxListForm" |
validate="true" |
scope="request" |
> |
<forward name="default" path="/mail/box/list.jsp" /> |
</action> |
|
<action |
path="/mail/box/deleting" |
type="ak.hostadmiral.core.action.MailboxAction" |
parameter="deleting" |
name="MailboxForm" |
validate="true" |
scope="request" |
> |
<forward name="default" path="/deleting.jsp" /> |
</action> |
|
<action |
path="/mail/box/delete" |
type="ak.hostadmiral.core.action.MailboxAction" |
parameter="delete" |
name="MailboxForm" |
validate="true" |
scope="request" |
> |
</action> |
|
<action |
path="/mail/box/edit" |
type="ak.hostadmiral.core.action.MailboxAction" |
parameter="edit" |
name="MailboxForm" |
validate="true" |
scope="request" |
> |
<forward name="default" path="/mail/box/edit.jsp" /> |
<forward name="view" path="/mail/box/view.jsp" /> |
</action> |
|
<action |
path="/mail/box/submit" |
type="ak.hostadmiral.core.action.MailboxAction" |
parameter="submit" |
name="MailboxEditForm" |
validate="true" |
scope="request" |
input="/mail/box/edit.jsp" |
> |
</action> |
|
<!-- == mail aliases ====================================================================== --> |
|
<action |
path="/mail/alias/list" |
type="ak.hostadmiral.core.action.MailAliasAction" |
parameter="list" |
name="MailAliasListForm" |
validate="true" |
scope="request" |
> |
<forward name="default" path="/mail/alias/list.jsp" /> |
</action> |
|
<action |
path="/mail/alias/deleting" |
type="ak.hostadmiral.core.action.MailAliasAction" |
parameter="deleting" |
name="MailAliasForm" |
validate="true" |
scope="request" |
> |
<forward name="default" path="/deleting.jsp" /> |
</action> |
|
<action |
path="/mail/alias/delete" |
type="ak.hostadmiral.core.action.MailAliasAction" |
parameter="delete" |
name="MailAliasForm" |
validate="true" |
scope="request" |
> |
</action> |
|
<action |
path="/mail/alias/edit" |
type="ak.hostadmiral.core.action.MailAliasAction" |
parameter="edit" |
name="MailAliasForm" |
validate="true" |
scope="request" |
> |
<forward name="default" path="/mail/alias/edit.jsp" /> |
<forward name="editdests" path="/mail/alias/editdests.jsp" /> |
<forward name="view" path="/mail/alias/view.jsp" /> |
</action> |
|
<action |
path="/mail/alias/submit" |
type="ak.hostadmiral.core.action.MailAliasAction" |
parameter="submit" |
name="MailAliasEditForm" |
validate="true" |
scope="request" |
input="/mail/alias/edit.do" |
> |
<forward name="default" path="/mail/alias/edit.jsp" /> |
<forward name="editdests" path="/mail/alias/editdests.jsp" /> |
<forward name="view" path="/mail/alias/view.jsp" /> |
</action> |
|
</action-mappings> |
|
<controller processorClass="ak.strutsx.RequestProcessorX" /> |
|
<message-resources |
factory="ak.hostadmiral.struts.MultiPropertyMessageResourcesFactory" |
parameter="ak.hostadmiral.core.resources.CoreMessages;ak.hostadmiral.core.resources.PageMessages" |
/> |
|
<!-- ========== Plug-Ins Configuration ================================== --> |
|
<plug-in className="org.apache.struts.validator.ValidatorPlugIn"> |
<set-property property="pathnames" |
value="/WEB-INF/validator-rules.xml,/WEB-INF/validation.xml" /> |
</plug-in> |
|
</struts-config> |