1 <?xml version="1.0" encoding="ISO-8859-1" ?>
\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
8 This is the Struts configuration file for the example application,
\r
9 using the proposed new syntax.
\r
16 <!-- ========== Data Source Configuration =============================== -->
\r
20 <set-property property="autoCommit"
\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
28 <set-property property="minCount"
\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
39 <!-- ========== Form Bean Definitions =================================== -->
\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
49 <!-- ========== Global Forward Definitions ============================== -->
\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
57 <!-- ========== Action Mapping Definitions ============================== -->
\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
65 <!-- Process a user logon -->
\r
66 <action path="/logon"
\r
67 type="mir.core.ui.action.AuthenticationAction"
\r
72 key="expired.password"
\r
73 type="org.apache.struts.webapp.example.ExpiredPasswordException"
\r
74 path="/changePassword.jsp"/>
\r
79 <!-- ========== Controller Configuration ================================ -->
\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
88 <!-- ========== Message Resources Definitions =========================== -->
\r
90 <!-- ========== Plug Ins Configuration ================================== -->
\r
92 <plug-in className="mir.core.ui.plugin.HibernatePlugin">
\r
94 <set-property property="pathname" value="/WEB-INF/database.xml"/>
\r