4b94619427620d307a1779853b8763c1f8514574
[mir.git] / etc / struts-config.xml
1 <?xml version="1.0" encoding="ISO-8859-1" ?>\r
2 \r
3 <!DOCTYPE struts-config PUBLIC\r
4           "-//Apache Software Foundation//DTD Struts Configuration 1.1//EN"\r
5           "http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd">\r
6 \r
7 <!--\r
8      This is the Struts configuration file for the example application,\r
9      using the proposed new syntax.\r
10 -->\r
11 \r
12 \r
13 <struts-config>\r
14 \r
15 \r
16   <!-- ========== Data Source Configuration =============================== -->\r
17 <!--\r
18  <data-sources>\r
19    <data-source>\r
20      <set-property property="autoCommit"\r
21                       value="false"/>\r
22      <set-property property="description"\r
23                       value="Example Data Source Configuration"/>\r
24      <set-property property="driverClass"\r
25                       value="org.postgresql.Driver"/>\r
26      <set-property property="maxCount"\r
27                       value="4"/>\r
28      <set-property property="minCount"\r
29                       value="2"/>\r
30      <set-property property="password"\r
31                       value="mypassword"/>\r
32      <set-property property="url"\r
33                       value="jdbc:postgresql://localhost/mydatabase"/>\r
34      <set-property property="user"\r
35                       value="myusername"/>\r
36    </data-source>\r
37  </data-sources>\r
38 -->\r
39   <!-- ========== Form Bean Definitions =================================== -->\r
40   <form-beans>\r
41 \r
42     <!-- Logon form bean -->\r
43     <form-bean       name="logonForm"\r
44                      type="org.apache.struts.validator.DynaValidatorForm">\r
45       <form-property name="username" type="java.lang.String"/>\r
46       <form-property name="password" type="java.lang.String"/>\r
47     </form-bean>\r
48 \r
49   <!-- ========== Global Forward Definitions ============================== -->\r
50   <global-forwards>\r
51     <forward   name="logoff"               path="/admin/logout.do"/>\r
52     <forward   name="logon"                path="/admin/login.shtml"/>\r
53     <forward   name="success"              path="/admin/index.shtml"/>\r
54   </global-forwards>\r
55 \r
56 \r
57   <!-- ========== Action Mapping Definitions ============================== -->\r
58   <action-mappings>\r
59     <!-- Process a user logoff -->\r
60     <action    path="/logoff"\r
61                type="mir.core.ui.action.AuthenticationAction">\r
62       <forward name="success" path="/index.shtml"/>\r
63     </action>\r
64 \r
65     <!-- Process a user logon -->\r
66     <action    path="/logon"\r
67                type="mir.core.ui.action.AuthenticationAction"\r
68                name="logonForm"\r
69               scope="session"\r
70               input="logon">\r
71       <exception\r
72                 key="expired.password"\r
73                type="org.apache.struts.webapp.example.ExpiredPasswordException"\r
74                path="/changePassword.jsp"/>\r
75     </action>\r
76   </action-mappings>\r
77 \r
78 \r
79   <!-- ========== Controller Configuration ================================ -->\r
80 \r
81   <controller>\r
82     <!-- The "input" parameter on "action" elements is the name of a\r
83          local or global "forward" rather than a module-relative path -->\r
84     <set-property property="inputForward" value="true"/>\r
85   </controller>\r
86 \r
87 \r
88   <!-- ========== Message Resources Definitions =========================== -->\r
89 \r
90   <!-- ========== Plug Ins Configuration ================================== -->\r
91 \r
92   <plug-in className="mir.core.ui.plugin.HibernatePlugin">\r
93     <!--\r
94     <set-property property="pathname" value="/WEB-INF/database.xml"/>\r
95     -->\r
96   </plug-in>\r
97 </struts-config>\r