<?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">
<!--
This is a blank Struts configuration file with an example
welcome action/page and other commented sample elements.
Tiles and the Struts Validator are configured using the factory defaults
and are ready-to-use.
NOTE: If you have a generator tool to create the corresponding Java classes
for you, you could include the details in the "form-bean" declarations.
Otherwise, you would only define the "form-bean" element itself, with the
corresponding "name" and "type" attributes, as shown here.
-->
<struts-config>
<!-- ==================================== Data Source Configuration -->
<!--
<data-sources>
<data-source>
<set-property
property="autoCommit"
value="false"/>
<set-property
property="description"
value="Example Data Source Configuration"/>
<set-property
property="driverClass"
value="org.postgresql.Driver"/>
<set-property
property="maxCount"
value="4"/>
<set-property
property="minCount"
value="2"/>
<set-property
property="password"
value="mypassword"/>
<set-property
property="url"
value="jdbc:postgresql://localhost/mydatabase"/>
<set-property
property="user"
value="myusername"/>
</data-source>
</data-sources>
-->
<!-- ======================================== Form Bean Definitions -->
<form-beans>
<form-bean
name="logonForm"
type="com.br.common.login.LogonForm"/>
<form-bean
name="forgetPasswordForm"
type="com.br.common.pub.ForgetPasswordForm"/>
<form-bean
name="productForm"
type="com.br.common.product.ProductForm"/>
<form-bean
name="faqForm"
type="com.br.common.faq.FaqForm"/>
<form-bean
name="contactForm"
type="com.br.common.contact.ContactForm"/>
<form-bean
name="rasForm"
type="com.br.ras.mypc.RasForm"/>
<form-bean
name="adminUserForm"
type="com.br.common.adminuser.UserForm"/>
<form-bean
name="adminUserRoleForm"
type="com.br.common.adminuser.UserRoleForm"/>
<form-bean
name="pageToForm"
type="com.br.common.adminuser.PageToForm"/>
<form-bean
name="optionUserForm"
type="com.br.common.optionuser.UserForm"/>
<form-bean
name="regUserForm"
type="com.br.common.pub.UserForm"/>
<form-bean
name="documentForm"
type="com.br.common.document.DocumentForm"/>
<form-bean
name="inviteBuddyForm"
type="com.br.common.buddy.InviteBuddyForm"/>
<!-- sample form bean descriptor for an ActionForm
<form-bean
name="inputForm"
type="app.InputForm"/>
end sample -->
<!-- sample form bean descriptor for a DynaActionForm
<form-bean
name="logonForm"
type="org.apache.struts.action.DynaActionForm">
<form-property
name="username"
type="java.lang.String"/>
<form-property
name="password"
type="java.lang.String"/>
end sample -->
</form-beans>
<!-- ================================= Global Exception Definitions -->
<global-exceptions>
<!-- sample exception handler
<exception
key="expired.password"
type="app.ExpiredPasswordException"
path="/changePassword.jsp"/>
end sample -->
</global-exceptions>
<!-- =================================== Global Forward Definitions -->
<global-forwards>
<!-- Default forward to "Welcome" action -->
<!-- Demonstrates using index.jsp to forward -->
<forward
name="welcome"
path="/Welcome.do"/>
<forward
name="products"
path="/Products.do"/>
<forward
name="productedit"
path="/Product.do?ops=edit"/>
<forward
name="productadd"
path="/Product.do?ops=add"/>
<forward
name="productdel"
path="/Product.do?ops=del"/>
<forward
name="productcancel"
path="/Products.do"/>
<forward
name="faqs"
path="/Faqs.do"/>
<forward
name="faqedit"
path="/Faq.do?ops=edit"/>
<forward
name="faqadd"
path="/Faq.do?ops=add"/>
<forward
name="faqdel"
path="/Faq.do?ops=del"/>
<forward
name="faqcancel"
path="/Faqs.do"/>
<forward
name="contacts"
path="/Contacts.do"/>
<forward
name="contactedit"
path="/Contact.do?ops=edit"/>
<forward
name="contactadd"
path="/Contact.do?ops=add"/>
<forward
name="contactdel"
path="/Contact.do?ops=del"/>
<forward
name="contactcancel"
path="/Contacts.do"/>
<forward
name="documentedit"
path="/Document.do?ops=edit"/>
<forward
name="documentadd"
path="/Document.do?ops=add"/>
<forward
name="documentdel"
path="/Document.do?ops=del"/>
<forward
name="documents"
path="/Documents.do"/>
<forward
name="documentcancel"
path="/Documents.do"/>
<forward
name="rascancel"
path="/Rases.do"/>
<forward
name="forgetpasswordcancel"
path="/Welcome.do"/>
<!-- ras / start -->
<forward
name="rases"
path="/Rases.do"/>
<forward
name="rasedit"
path="/Ras.do?ops=edit"/>
<forward
name="rasadd"
path="/Ras.do?ops=add"/>
<forward
name="rasdel"
path="/Ras.do?ops=del"/>
<forward
name="rasServer"
path="/RasServer.do"/>
<forward
name="rasClient"
path="/RasClient.do"/>
<forward
name="waitForServer"
path="/WaitForServer.do"/>
<forward
name="rasServerDirect"
path="/Ras.do?ops=server"/>
<forward
name="rasClientDirect"
path="/Ras.do?ops=client"/>
<!-- ras / end -->
<!-- admin user -->
<forward
name="adminusers"
path="/AdminUsers.do"/>
<forward
name="adminuseredit"
path="/AdminUser.do?ops=edit"/>
<forward
name="adminuseradd"
path="/AdminUser.do?ops=add"/>
<forward
name="adminuserroles"
path="/AdminUserRoles.do"/>
<forward
name="adminuserroledel"
path="/AdminUserRole.do?ops=del"/>
<forward
name="adminuserroleadd"
path="/AdminUserRole.do?ops=add"/>
<forward
name="adminuserrolescancel"
path="/AdminUserRoles.do"/>
<forward
name="adminusercancel"
path="/AdminUsers.do"/>
<!-- to do -->
<forward
name="sales"
path="/ToDo.do"/>
<forward
name="company"
path="/Company.do"/>
<!-- option user -->
<forward
name="optionuser"
path="/OptionUser.do"/>
<!--forward
name="summary"
path="/Summary.do"/-->
<forward
name="config"
path="/Config.do"/>
<!-- exit -->
<forward
name="logoff"
path="/Logoff.do"/>
<!-- sign up -->
<forward
name="signup"
path="/SignUp.do?ops=add"/>
<forward
name="signupSuccessLogin"
path="/SignIn.do"/>
<!-- forget password -->
<forward
name="forgetlink"
path="/forgetlink.do"/>
<!-- invite buddy -->
<forward
name="nameMessageEdit"
path="/NameMessageEdit.do"/>
<forward
name="inviteBuddyLink"
path="/InviteBuddyLink.do"/>
<forward
name="welcomeBuddy"
path="/WelcomeBuddy.do"/>
</global-forwards>
<!-- =================================== Action Mapping Definitions -->
<action-mappings>
<!-- Default "Welcome" action -->
<!-- Forwards to Welcome.jsp -->
<!-- forget password -->
<action
path="/forgetlink"
type="com.br.common.pub.WelcomeAction">
<forward
name="notLoggedIn"
path=".forgetpassword"/>
<forward
name="success"
path=".forgetpassword"/>
</action>
<action
path="/ForgetPasswordSubmit"
type="com.br.common.pub.ForgetPasswordSubmitAction"
name="forgetPasswordForm"
validate="true"
input=".forgetpassword">
<forward
name="Error"
path=".forgetpassword"/>
<forward
name="success"
path=".forgetpassword_successful"/>
<!--forward
name="error"
path=".error"/-->
</action>
<action
path="/ToDo"
type="org.apache.struts.actions.ForwardAction"
parameter="/pages/Welcome.jsp"/>
<!-- really start here -->
<action
path="/Welcome"
type="com.br.common.pub.WelcomeAction">
<forward
name="notLoggedIn"
path=".home"/>
<forward
name="success"
path=".home"/>
</action>
<action
path="/LogonSubmit"
type="com.br.common.login.LogonAction"
name="logonForm"
scope="request"
validate="true"
input=".public">
<forward
name="success"
path=".rasfirst"/>
<forward
name="notfirstlogon"
path="/Rases.do"/>
<!--
path=".rases"/> -->
</action>
<action
path="/Products"
type="com.br.common.product.ProductsAction">
<forward
name="success"
path=".products"/>
<forward
name="notLoggedIn"
path=".public"/>
<!--forward
name="error"
path=".error"/-->
</action>
<action
path="/Product"
type="com.br.common.product.ProductAction"
name="productForm"
validate="false">
<forward
name="notLoggedIn"
path=".public"/>
<forward
name="success"
path=".product"/>
<!--forward
name="error"
path=".error"/-->
</action>
<action
path="/ProductSubmit"
type="com.br.common.product.ProductSubmitAction"
name="productForm"
validate="true"
input=".product">
<forward
name="notLoggedIn"
path=".public"/>
<forward
name="success"
path="/Products.do"/>
<!--forward
name="error"
path=".error"/-->
</action>
<action
path="/Faqs"
type="com.br.common.faq.FaqsAction">
<forward
name="success"
path=".faqs"/>
<!--forward
name="error"
path=".error"/-->
</action>
<action
path="/Faq"
type="com.br.common.faq.FaqAction"
name="faqForm"
validate="false">
<forward
name="notLoggedIn"
path=".public"/>
<forward
name="success"
path=".faq"/>
<!--forward
name="error"
path=".error"/-->
</action>
<action
path="/Documents"
type="com.br.common.document.DocumentsAction">
<forward
name="success"
path=".documents"/>
<forward
name="notLoggedIn"
path=".public"/>
</action>
<action
path="/Document"
type="com.br.common.document.DocumentAction"
name="documentForm"
validate="false">
<forward
name="notLoggedIn"
path=".public"/>
<forward
name="success"
path=".document"/>
<!--forward
name="error"
path=".error"/-->
</action>
<action
path="/DocumentSubmit"
type="com.br.common.document.DocumentSubmitAction"
name="documentForm"
validate="false"
input=".document">
<forward
name="notLoggedIn"
path=".public"/>
<forward
name="success"
path="/Documents.do"/>
<!--forward
name="error"
path=".error"/-->
</action>
<action
path="/FaqSubmit"
type="com.br.common.faq.FaqSubmitAction"
name="faqForm"
validate="true"
input=".faq">
<forward
name="notLoggedIn"
path=".public"/>
<forward
name="success"
path="/Faqs.do"/>
<!--forward
name="error"
path=".error"/-->
</action>
<action
path="/Contacts"
type="com.br.common.contact.ContactsAction">
<forward
name="success"
path=".contacts"/>
<forward
name="notLoggedIn"
path=".public"/>
<!--forward
name="error"
path=".error"/-->
</action>
<action
path="/Contact"
type="com.br.common.contact.ContactAction"
name="contactForm"
validate="false">
<forward
name="notLoggedIn"
path=".public"/>
<forward
name="success"
path=".contact"/>
<!--forward
name="error"
path=".error"/-->
</action>
<action
path="/ContactSubmit"
type="com.br.common.contact.ContactSubmitAction"
name="contactForm"
validate="true"
input=".contact">
<forward
name="notLoggedIn"
path=".public"/>
<forward
name="success"
path="/Contacts.do"/>
<!--forward
name="error"
path=".error"/-->
</action>
<!-- ras / start -->
<action
path="/Rases"
type="com.br.ras.mypc.RasesAction">
<forward
name="success"
path=".rases"/>
<forward
name="notLoggedIn"
path=".public"/>
<!--forward
name="error"
path=".error"/-->
</action>
<action
path="/Ras"
type="com.br.ras.mypc.RasAction"
name="rasForm"
validate="false">
<forward
name="notLoggedIn"
path=".public"/>
<forward
name="success"
path=".ras"/>
<!--forward
name="error"
path=".error"/-->
</action>
<action
path="/RasSubmit"
type="com.br.ras.mypc.RasSubmitAction"
name="rasForm"
validate="true"
input=".ras">
<forward
name="notLoggedIn"
path=".public"/>
<forward
name="success"
path=".rases"/>
<!--forward
name="error"
path=".error"/-->
</action>
<action
path="/RasServer"
type="com.br.ras.mypc.RasServerAction">
<forward
name="notLoggedIn"
path=".public"/>
<forward
name="success"
path=".ras"/>
<!--
path=".rasServer"/-->
<!--forward
name="error"
path=".error"/-->
</action>
<action
path="/RasServerWin"
type="org.apache.struts.actions.ForwardAction"
parameter="/pages/ras/mypc/rasServer.jsp"/>
<action
path="/RasClient"
type="com.br.ras.mypc.RasClientAction">
<forward
name="success"
path=".ras"/>
<!--
path=".rasClient"/-->
<forward
name="waitforserver"
path="/WaitForServer.do"/>
<!--forward
name="error"
path=".error"/-->
</action>
<action
path="/RasClientWin"
type="org.apache.struts.actions.ForwardAction"
parameter="/pages/ras/mypc/rasClient.jsp"/>
<action
path="/WaitForServer"
type="com.br.ras.mypc.WaitForServerAction"
name="rasForm"
validate="false">
<forward
name="success"
path=".ras"/>
<!--forward
name="error"
path=".error"/-->
</action>
<!-- ras / end -->
<!-- admin user -->
<action
path="/AdminUsers"
type="com.br.common.adminuser.UsersAction">
<forward
name="success"
path=".adminusers"/>
<forward
name="notLoggedIn"
path=".public"/>
<!--forward
name="error"
path=".error"/-->
</action>
<action
path="/AdminUserPageSkip"
type="com.br.common.adminuser.PageSkipAction"
name="pageToForm">
<forward
name="success"
path=".adminusers"/>
<!--forward
name="error"
path=".error"/-->
</action>
<action
path="/AdminUser"
type="com.br.common.adminuser.UserAction"
name="adminUserForm"
validate="false">
<!-- split following into edit && add -->
<!--forward
name="success"
path=".adminuser"/-->
<forward
name="add"
path=".adminuseradd"/>
<forward
name="edit"
path=".adminuseredit"/>
<forward
name="notLoggedIn"
path=".public"/>
<!--forward
name="error"
path=".error"/-->
</action>
<action
path="/AdminUserSubmit"
type="com.br.common.adminuser.UserSubmitAction"
name="adminUserForm"
validate="false">
<!-- no use any more
input=".adminuser">
-->
<forward
name="notLoggedIn"
path=".public"/>
<!--forward
name="success"
path=".adminuser"/--> <!--
not go back from here, use seperate link for going back to the list
-->
<forward
name="add"
path=".adminuseradd"/>
<forward
name="edit"
path=".adminuseredit"/>
<!--forward
name="error"
path=".error"/-->
</action>
<action
path="/AdminUserRoles"
type="com.br.common.adminuser.UserRolesAction">
<forward
name="success"
path=".adminuserroles"/>
<!--forward
name="error"
path=".error"/-->
</action>
<action
path="/AdminUserRole"
type="com.br.common.adminuser.UserRoleAction"
name="adminUserRoleForm"
validate="false">
<!-- split following into del && add -->
<!--forward
name="success"
path=".adminuserrole"/-->
<forward
name="del"
path=".adminuserroledel"/>
<forward
name="add"
path=".adminuserroleadd"/>
<!--forward
name="error"
path=".error"/-->
</action>
<action
path="/AdminUserRoleSubmit"
type="com.br.common.adminuser.UserRoleSubmitAction"
name="adminUserRoleForm"
validate="true">
<!-- no use any more
input=".adminuserrole">
-->
<forward
name="notLoggedIn"
path=".public"/>
<!-- split following into del && add -->
<!--forward
name="success"
path=".adminuserrole"/-->
<!-- not go back from here, use seperate link for going back
to the list -->
<forward
name="del"
path=".adminuserroledel"/>
<forward
name="add"
path=".adminuserroleadd"/>
<!--forward
name="error"
path=".error"/-->
</action>
<!-- user option -->
<action
path="/OptionUser"
type="com.br.common.optionuser.UserAction"
name="optionUserForm"
validate="false">
<forward
name="success"
path=".optionuser"/>
<forward
name="notLoggedIn"
path=".public"/>
<!--forward
name="error"
path=".error"/-->
</action>
<action
path="/OptionUserSubmit"
type="com.br.common.optionuser.UserSubmitAction"
name="optionUserForm"
validate="true"
input=".optionuser">
<forward
name="notLoggedIn"
path=".public"/>
<forward
name="success"
path=".optionuser"/> <!--
not go back from here, use seperate link for going back to the list
-->
<!--forward
name="error"
path=".error"/-->
</action>
<!-- ? not used -->
<!--action
path="/Summary"
type="com.br.common.colla.SummaryAction">
<forward
name="notLoggedIn"
path=".public"/>
<forward
name="sessionExpired"
path=".sessionExpired"/>
<forward
name="success"
path=".home"/>
</action-->
<action
path="/Config"
type="com.br.common.config.ConfigAction">
<forward
name="notLoggedIn"
path=".public"/>
<forward
name="sessionExpired"
path=".sessionExpired"/>
<forward
name="success"
path=".config"/>
</action>
<!-- logoff -->
<action
path="/Logoff"
type="com.br.common.login.LogoffAction">
<forward
name="success"
path=".public" />
</action>
<!-- sign up -->
<action
path="/SignUp"
type="com.br.common.pub.UserAction"
name="regUserForm"
validate="false">
<forward
name="success"
path=".signup"/>
<!--forward
name="error"
path=".error"/-->
</action>
<action
path="/SignUpSubmit"
type="com.br.common.pub.UserSubmitAction"
name="regUserForm"
validate="true"
input=".signup">
<forward
name="success"
path=".signupSuccess"/> <!--
not go back from here, use seperate link for going back to the list
-->
<!--forward
name="error"
path=".error"/-->
</action>
<action
path="/SignupConfirmation"
type="com.br.common.pub.SignupConfirmationAction">
<forward
name="confirmNow"
path=".signupConfirmation"/>
<forward
name="confirmBefore"
path=".signupConfirmation"/>
<forward
name="confirmError"
path=".signupConfirmation"/>
</action>
<action
path="/SignIn"
type="com.br.common.pub.SignInAction"
name="regUserForm"
scope="session"
validate="true"
input=".signup">
<forward
name="success"
path=".rasfirst"/>
</action>
<action
path="/SendmailSubmit"
type="com.br.common.buddy.InviteBuddyAction"
name="inviteBuddyForm"
validate="true"
input=".nameMessageEdit">
<forward
name="success"
path=".nameMessageEdit" />
</action>
<!-- <action
path="/EditSendMailSubmit"
type="com.br.common.buddy.InviteBuddyAction"
name="inviteBuddyForm"
validate="true"
input=".nameMessageEdit">
<forward
name="success"
path=".sendMailSuccess" />
</action>-->
<action
path="/NameMessageEdit"
type="com.br.common.buddy.InviteBuddyEditAction">
<forward
name="success"
path=".nameMessageEdit" />
<forward
name="notLoggedIn"
path=".public" />
</action>
<action
path="/InviteBuddyLink"
type="com.br.common.buddy.InviteBuddyLinkAction">
<forward
name="success"
path=".inviteBuddyLink" />
</action>
<action
path="/WelcomeBuddy"
type="com.br.common.pub.WelcomeBuddyAction">
<forward
name="success"
path=".home" />
<forward
name="notLoggedIn"
path=".public" />
</action>
<!-- sample input and input submit actions
<action
path="/Input"
type="org.apache.struts.actions.ForwardAction"
parameter="/pages/Input.jsp"/>
<action
path="/InputSubmit"
type="app.InputAction"
name="inputForm"
scope="request"
validate="true"
input="/pages/Input.jsp"/>
end samples -->
</action-mappings>
<!-- ===================================== Controller Configuration -->
<controller
processorClass="org.apache.struts.tiles.TilesRequestProcessor"
locale="true" />
<!-- ================================ Message Resources Definitions -->
<message-resources parameter="resources.application"/>
<!-- ======================================= Plug Ins Configuration -->
<plug-in className="org.apache.struts.tiles.TilesPlugin" >
<set-property property="definitions-config"
value="/WEB-INF/tiles-defs.xml"/>
<set-property property="definitions-debug" value="1" />
<set-property property="definitions-parser-details" value="0" />
<set-property property="definitions-parser-validate" value="true" />
</plug-in>
<plug-in className="org.apache.struts.validator.ValidatorPlugIn">
<set-property
property="pathnames"
value="/WEB-INF/validator-rules.xml,/WEB-INF/validation.xml"/>
</plug-in>
<plug-in className="com.br.common.util.ConverterPlugIn" />
</struts-config>
posted on 2006-01-22 08:44
happytian 阅读(258)
评论(0) 编辑 收藏