Subversion Repositories WebE

Rev

Rev 27 | Rev 31 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
18 moos 1
<!DOCTYPE struts PUBLIC
2
"-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
3
"http://struts.apache.org/dtds/struts-2.0.dtd">
4
 
5
<struts>
22 moos 6
        <constant name="struts.devMode" value="true" /> <!-- activates debugging output -->
20 moos 7
 
8
        <!-- User environment -->
29 PointedEar 9
        <package name="user" namespace="/user" extends="hibernate-default">
10
    <!-- Term management -->
11
    <action name="termAddForm">
12
      <result>/user/termAddForm.jsp</result>
13
    </action>
14
        </package>     
20 moos 15
 
16
        <!-- Admin environment -->
17
        <package name="admin" namespace="/admin" extends="hibernate-default">
26 moos 18
 
19
                <!-- User management -->
20 moos 20
                <action name="userAddForm">
21
                        <result>/admin/userAddForm.jsp</result>
22
                </action>
18 moos 23
 
27 moos 24
                <action name="doUserAdd" method="addOrUpdate" class="ch.ffhs.webE.action.UserAction">
22 moos 25
                        <result name="success">/admin/userAdd.jsp</result>
20 moos 26
                </action>
27
 
22 moos 28
                <action name="userList" method="list" class="ch.ffhs.webE.action.UserAction">
29
                        <result name="success">/admin/userList.jsp</result>
20 moos 30
                </action>
22 moos 31
 
32
                <action name="deleteUser" method="delete" class="ch.ffhs.webE.action.UserAction">
33
                        <result name="success" type="redirect">/admin/userList</result>
34
                </action>
26 moos 35
 
27 moos 36
                <action name="editUser" method="edit" class="ch.ffhs.webE.action.UserAction">
37
                        <result name="success">/admin/userAddForm.jsp</result>
38
                </action>
26 moos 39
 
27 moos 40
 
41
 
42
 
26 moos 43
                <!-- Relationship Type management -->
44
                <action name="relTypeList" method="list" class="ch.ffhs.webE.action.RelationshipTypeAction">
45
                        <result name="success">/admin/relTypeList.jsp</result>
46
                </action>
47
 
48
                <action name="relTypeAddForm">
49
                        <result>/admin/relTypeAddForm.jsp</result>
50
                </action>
51
 
27 moos 52
                <action name="doRelTypeAdd" method="addOrUpdate" class="ch.ffhs.webE.action.RelationshipTypeAction">
26 moos 53
                        <result name="success" type="redirect">/admin/relTypeList</result>
54
                </action>
55
 
56
                <action name="deleteRelType" method="delete" class="ch.ffhs.webE.action.RelationshipTypeAction">
57
                        <result name="success" type="redirect">/admin/relTypeList</result>
58
                </action>
27 moos 59
 
60
                <action name="editRelType" method="edit" class="ch.ffhs.webE.action.RelationshipTypeAction">
61
                        <result name="success">/admin/relTypeAddForm.jsp</result>
62
                        <result name="error">/admin/adminError.jsp</result>
63
                </action>
64
 
20 moos 65
        </package>
66
 
22 moos 67
 
68
 
69
 
20 moos 70
        <!-- Remaining environment of the session-->
71
        <package name="default" namespace="" extends="hibernate-default">
72
 
73
                <!-- Login -->         
74
                <action name="Login" method="doLogin" class="ch.ffhs.webE.action.LoginAction">
75
                        <result name="admin" type="redirect">/admin/main.jsp</result>
76
                        <result name="user" type="redirect">/user/main.jsp</result>
23 moos 77
                        <result name="error" type="redirect">/index.jsp</result>
18 moos 78
                </action>
20 moos 79
 
80
                <action name="Logout" method="doLogout" class="ch.ffhs.webE.action.LoginAction">
81
                        <result name="success" type="redirect">/index.jsp</result>
82
                </action>
18 moos 83
        </package>
84
</struts>