Subversion Repositories WebE

Rev

Rev 19 | Rev 22 | 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>
20 moos 6
        <constant name="struts.devMode" value="false" /> <!-- set to true for more debugging output -->
7
 
8
        <!-- User environment -->
9
        <package name="user" namespace="/user" extends="struts-default">
10
 
11
        </package>
12
 
13
        <!-- Admin environment -->
14
        <package name="admin" namespace="/admin" extends="hibernate-default">
15
                <action name="userAddForm">
16
                        <result>/admin/userAddForm.jsp</result>
17
                </action>
18 moos 18
 
20 moos 19
                <action name="doUserAdd" method="addForm" class="ch.ffhs.webE.action.UserAction">
20
                        <result name="success" type="redirect">/admin/userAdd.jsp</result>
21
                </action>
22
 
23
                <action name="userList">
24
                        <result>/admin/userList.jsp</result>
25
                </action>
26
        </package>
27
 
28
        <!-- Remaining environment of the session-->
29
        <package name="default" namespace="" extends="hibernate-default">
30
 
31
                <!-- Login -->         
32
                <action name="Login" method="doLogin" class="ch.ffhs.webE.action.LoginAction">
33
                        <result name="admin" type="redirect">/admin/main.jsp</result>
34
                        <result name="user" type="redirect">/user/main.jsp</result>
18 moos 35
                        <result name="failed" type="redirect">/index.jsp</result>
36
                </action>
20 moos 37
 
38
                <action name="Logout" method="doLogout" class="ch.ffhs.webE.action.LoginAction">
39
                        <result name="success" type="redirect">/index.jsp</result>
40
                </action>
18 moos 41
        </package>
42
</struts>