Subversion Repositories WebE

Rev

Rev 26 | Rev 29 | 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 -->
9
        <package name="user" namespace="/user" extends="struts-default">
10
 
11
        </package>
12
 
22 moos 13
 
14
 
20 moos 15
        <!-- Admin environment -->
16
        <package name="admin" namespace="/admin" extends="hibernate-default">
26 moos 17
 
18
                <!-- User management -->
20 moos 19
                <action name="userAddForm">
20
                        <result>/admin/userAddForm.jsp</result>
21
                </action>
18 moos 22
 
27 moos 23
                <action name="doUserAdd" method="addOrUpdate" class="ch.ffhs.webE.action.UserAction">
22 moos 24
                        <result name="success">/admin/userAdd.jsp</result>
20 moos 25
                </action>
26
 
22 moos 27
                <action name="userList" method="list" class="ch.ffhs.webE.action.UserAction">
28
                        <result name="success">/admin/userList.jsp</result>
20 moos 29
                </action>
22 moos 30
 
31
                <action name="deleteUser" method="delete" class="ch.ffhs.webE.action.UserAction">
32
                        <result name="success" type="redirect">/admin/userList</result>
33
                </action>
26 moos 34
 
27 moos 35
                <action name="editUser" method="edit" class="ch.ffhs.webE.action.UserAction">
36
                        <result name="success">/admin/userAddForm.jsp</result>
37
                </action>
26 moos 38
 
27 moos 39
 
40
 
41
 
26 moos 42
                <!-- Relationship Type management -->
43
                <action name="relTypeList" method="list" class="ch.ffhs.webE.action.RelationshipTypeAction">
44
                        <result name="success">/admin/relTypeList.jsp</result>
45
                </action>
46
 
47
                <action name="relTypeAddForm">
48
                        <result>/admin/relTypeAddForm.jsp</result>
49
                </action>
50
 
27 moos 51
                <action name="doRelTypeAdd" method="addOrUpdate" class="ch.ffhs.webE.action.RelationshipTypeAction">
26 moos 52
                        <result name="success" type="redirect">/admin/relTypeList</result>
53
                </action>
54
 
55
                <action name="deleteRelType" method="delete" class="ch.ffhs.webE.action.RelationshipTypeAction">
56
                        <result name="success" type="redirect">/admin/relTypeList</result>
57
                </action>
27 moos 58
 
59
                <action name="editRelType" method="edit" class="ch.ffhs.webE.action.RelationshipTypeAction">
60
                        <result name="success">/admin/relTypeAddForm.jsp</result>
61
                        <result name="error">/admin/adminError.jsp</result>
62
                </action>
63
 
20 moos 64
        </package>
65
 
22 moos 66
 
67
 
68
 
20 moos 69
        <!-- Remaining environment of the session-->
70
        <package name="default" namespace="" extends="hibernate-default">
71
 
72
                <!-- Login -->         
73
                <action name="Login" method="doLogin" class="ch.ffhs.webE.action.LoginAction">
74
                        <result name="admin" type="redirect">/admin/main.jsp</result>
75
                        <result name="user" type="redirect">/user/main.jsp</result>
23 moos 76
                        <result name="error" type="redirect">/index.jsp</result>
18 moos 77
                </action>
20 moos 78
 
79
                <action name="Logout" method="doLogout" class="ch.ffhs.webE.action.LoginAction">
80
                        <result name="success" type="redirect">/index.jsp</result>
81
                </action>
18 moos 82
        </package>
83
</struts>