Rev 22 | Rev 26 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 22 | Rev 23 | ||
---|---|---|---|
1 | <!DOCTYPE struts PUBLIC
|
1 | <!DOCTYPE struts PUBLIC
|
2 | "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
|
2 | "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
|
3 | "http://struts.apache.org/dtds/struts-2.0.dtd">
|
3 | "http://struts.apache.org/dtds/struts-2.0.dtd">
|
4 | 4 | ||
5 | <struts>
|
5 | <struts>
|
6 | <constant name="struts.devMode" value="true" /> <!-- activates debugging output --> |
6 | <constant name="struts.devMode" value="true" /> <!-- activates debugging output --> |
7 | 7 | ||
8 | <!-- User environment -->
|
8 | <!-- User environment -->
|
9 | <package name="user" namespace="/user" extends="struts-default">
|
9 | <package name="user" namespace="/user" extends="struts-default">
|
10 | 10 | ||
11 | </package>
|
11 | </package>
|
12 | 12 | ||
13 | 13 | ||
14 | 14 | ||
15 | <!-- Admin environment -->
|
15 | <!-- Admin environment -->
|
16 | <package name="admin" namespace="/admin" extends="hibernate-default">
|
16 | <package name="admin" namespace="/admin" extends="hibernate-default">
|
17 | <action name="userAddForm">
|
17 | <action name="userAddForm">
|
18 | <result>/admin/userAddForm.jsp</result> |
18 | <result>/admin/userAddForm.jsp</result> |
19 | </action>
|
19 | </action>
|
20 | 20 | ||
21 | <action name="doUserAdd" method="add" class="ch.ffhs.webE.action.UserAction">
|
21 | <action name="doUserAdd" method="add" class="ch.ffhs.webE.action.UserAction">
|
22 | <result name="success">/admin/userAdd.jsp</result> |
22 | <result name="success">/admin/userAdd.jsp</result> |
23 | </action>
|
23 | </action>
|
24 | 24 | ||
25 | <action name="userList" method="list" class="ch.ffhs.webE.action.UserAction">
|
25 | <action name="userList" method="list" class="ch.ffhs.webE.action.UserAction">
|
26 | <result name="success">/admin/userList.jsp</result> |
26 | <result name="success">/admin/userList.jsp</result> |
27 | </action>
|
27 | </action>
|
28 | 28 | ||
29 | <action name="deleteUser" method="delete" class="ch.ffhs.webE.action.UserAction">
|
29 | <action name="deleteUser" method="delete" class="ch.ffhs.webE.action.UserAction">
|
30 | <result name="success" type="redirect">/admin/userList</result> |
30 | <result name="success" type="redirect">/admin/userList</result> |
31 | </action>
|
31 | </action>
|
32 | </package>
|
32 | </package>
|
33 | 33 | ||
34 | 34 | ||
35 | 35 | ||
36 | 36 | ||
37 | <!-- Remaining environment of the session-->
|
37 | <!-- Remaining environment of the session-->
|
38 | <package name="default" namespace="" extends="hibernate-default">
|
38 | <package name="default" namespace="" extends="hibernate-default">
|
39 | 39 | ||
40 | <!-- Login -->
|
40 | <!-- Login -->
|
41 | <action name="Login" method="doLogin" class="ch.ffhs.webE.action.LoginAction">
|
41 | <action name="Login" method="doLogin" class="ch.ffhs.webE.action.LoginAction">
|
42 | <result name="admin" type="redirect">/admin/main.jsp</result> |
42 | <result name="admin" type="redirect">/admin/main.jsp</result> |
43 | <result name="user" type="redirect">/user/main.jsp</result> |
43 | <result name="user" type="redirect">/user/main.jsp</result> |
44 | <result name="failed" type="redirect">/index.jsp</result> |
44 | <result name="error" type="redirect">/index.jsp</result> |
45 | </action>
|
45 | </action>
|
46 | 46 | ||
47 | <action name="Logout" method="doLogout" class="ch.ffhs.webE.action.LoginAction">
|
47 | <action name="Logout" method="doLogout" class="ch.ffhs.webE.action.LoginAction">
|
48 | <result name="success" type="redirect">/index.jsp</result> |
48 | <result name="success" type="redirect">/index.jsp</result> |
49 | </action>
|
49 | </action>
|
50 | </package>
|
50 | </package>
|
51 | </struts>
|
51 | </struts>
|