Subversion Repositories WebE

Rev

Rev 23 | Rev 27 | 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
 
22 moos 23
                <action name="doUserAdd" method="add" class="ch.ffhs.webE.action.UserAction">
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
 
35
 
36
                <!-- Relationship Type management -->
37
                <action name="relTypeList" method="list" class="ch.ffhs.webE.action.RelationshipTypeAction">
38
                        <result name="success">/admin/relTypeList.jsp</result>
39
                </action>
40
 
41
                <action name="relTypeAddForm">
42
                        <result>/admin/relTypeAddForm.jsp</result>
43
                </action>
44
 
45
                <action name="doRelTypeAdd" method="add" class="ch.ffhs.webE.action.RelationshipTypeAction">
46
                        <result name="success" type="redirect">/admin/relTypeList</result>
47
                </action>
48
 
49
                <action name="deleteRelType" method="delete" class="ch.ffhs.webE.action.RelationshipTypeAction">
50
                        <result name="success" type="redirect">/admin/relTypeList</result>
51
                </action>
52
 
20 moos 53
        </package>
54
 
22 moos 55
 
56
 
57
 
20 moos 58
        <!-- Remaining environment of the session-->
59
        <package name="default" namespace="" extends="hibernate-default">
60
 
61
                <!-- Login -->         
62
                <action name="Login" method="doLogin" class="ch.ffhs.webE.action.LoginAction">
63
                        <result name="admin" type="redirect">/admin/main.jsp</result>
64
                        <result name="user" type="redirect">/user/main.jsp</result>
23 moos 65
                        <result name="error" type="redirect">/index.jsp</result>
18 moos 66
                </action>
20 moos 67
 
68
                <action name="Logout" method="doLogout" class="ch.ffhs.webE.action.LoginAction">
69
                        <result name="success" type="redirect">/index.jsp</result>
70
                </action>
18 moos 71
        </package>
72
</struts>