Subversion Repositories WebE

Rev

Rev 22 | Rev 26 | 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">
17
                <action name="userAddForm">
18
                        <result>/admin/userAddForm.jsp</result>
19
                </action>
18 moos 20
 
22 moos 21
                <action name="doUserAdd" method="add" class="ch.ffhs.webE.action.UserAction">
22
                        <result name="success">/admin/userAdd.jsp</result>
20 moos 23
                </action>
24
 
22 moos 25
                <action name="userList" method="list" class="ch.ffhs.webE.action.UserAction">
26
                        <result name="success">/admin/userList.jsp</result>
20 moos 27
                </action>
22 moos 28
 
29
                <action name="deleteUser" method="delete" class="ch.ffhs.webE.action.UserAction">
30
                        <result name="success" type="redirect">/admin/userList</result>
31
                </action>
20 moos 32
        </package>
33
 
22 moos 34
 
35
 
36
 
20 moos 37
        <!-- Remaining environment of the session-->
38
        <package name="default" namespace="" extends="hibernate-default">
39
 
40
                <!-- Login -->         
41
                <action name="Login" method="doLogin" class="ch.ffhs.webE.action.LoginAction">
42
                        <result name="admin" type="redirect">/admin/main.jsp</result>
43
                        <result name="user" type="redirect">/user/main.jsp</result>
23 moos 44
                        <result name="error" type="redirect">/index.jsp</result>
18 moos 45
                </action>
20 moos 46
 
47
                <action name="Logout" method="doLogout" class="ch.ffhs.webE.action.LoginAction">
48
                        <result name="success" type="redirect">/index.jsp</result>
49
                </action>
18 moos 50
        </package>
51
</struts>