+<?xml version="1.0" encoding="ISO-8859-1" ?>\r
+\r
+<!DOCTYPE struts-config PUBLIC\r
+ "-//Apache Software Foundation//DTD Struts Configuration 1.1//EN"\r
+ "http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd">\r
+\r
+<!--\r
+ This is the Struts configuration file for the example application,\r
+ using the proposed new syntax.\r
+-->\r
+\r
+\r
+<struts-config>\r
+\r
+\r
+ <!-- ========== Data Source Configuration =============================== -->\r
+<!--\r
+ <data-sources>\r
+ <data-source>\r
+ <set-property property="autoCommit"\r
+ value="false"/>\r
+ <set-property property="description"\r
+ value="Example Data Source Configuration"/>\r
+ <set-property property="driverClass"\r
+ value="org.postgresql.Driver"/>\r
+ <set-property property="maxCount"\r
+ value="4"/>\r
+ <set-property property="minCount"\r
+ value="2"/>\r
+ <set-property property="password"\r
+ value="mypassword"/>\r
+ <set-property property="url"\r
+ value="jdbc:postgresql://localhost/mydatabase"/>\r
+ <set-property property="user"\r
+ value="myusername"/>\r
+ </data-source>\r
+ </data-sources>\r
+-->\r
+ <!-- ========== Form Bean Definitions =================================== -->\r
+ <form-beans>\r
+\r
+ <!-- Logon form bean -->\r
+ <form-bean name="logonForm"\r
+ type="org.apache.struts.validator.DynaValidatorForm">\r
+ <form-property name="username" type="java.lang.String"/>\r
+ <form-property name="password" type="java.lang.String"/>\r
+ </form-bean>\r
+\r
+ <!-- ========== Global Forward Definitions ============================== -->\r
+ <global-forwards>\r
+ <forward name="logoff" path="/admin/logout.do"/>\r
+ <forward name="logon" path="/admin/login.shtml"/>\r
+ <forward name="success" path="/admin/index.shtml"/>\r
+ </global-forwards>\r
+\r
+\r
+ <!-- ========== Action Mapping Definitions ============================== -->\r
+ <action-mappings>\r
+ <!-- Process a user logoff -->\r
+ <action path="/logoff"\r
+ type="mir.core.ui.action.AuthenticationAction">\r
+ <forward name="success" path="/index.shtml"/>\r
+ </action>\r
+\r
+ <!-- Process a user logon -->\r
+ <action path="/logon"\r
+ type="mir.core.ui.action.AuthenticationAction"\r
+ name="logonForm"\r
+ scope="session"\r
+ input="logon">\r
+ <exception\r
+ key="expired.password"\r
+ type="org.apache.struts.webapp.example.ExpiredPasswordException"\r
+ path="/changePassword.jsp"/>\r
+ </action>\r
+ </action-mappings>\r
+\r
+\r
+ <!-- ========== Controller Configuration ================================ -->\r
+\r
+ <controller>\r
+ <!-- The "input" parameter on "action" elements is the name of a\r
+ local or global "forward" rather than a module-relative path -->\r
+ <set-property property="inputForward" value="true"/>\r
+ </controller>\r
+\r
+\r
+ <!-- ========== Message Resources Definitions =========================== -->\r
+\r
+ <!-- ========== Plug Ins Configuration ================================== -->\r
+\r
+ <plug-in className="mir.core.ui.plugin.HibernatePlugin">\r
+ <!--\r
+ <set-property property="pathname" value="/WEB-INF/database.xml"/>\r
+ -->\r
+ </plug-in>\r
+</struts-config>\r