Rev 23 | Rev 27 | Go to most recent revision | Only display areas with differences | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 23 | Rev 26 | ||
---|---|---|---|
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 | ||
- | 18 | <!-- User management -->
|
|
17 | <action name="userAddForm">
|
19 | <action name="userAddForm">
|
18 | <result>/admin/userAddForm.jsp</result> |
20 | <result>/admin/userAddForm.jsp</result> |
19 | </action>
|
21 | </action>
|
20 | 22 | ||
21 | <action name="doUserAdd" method="add" class="ch.ffhs.webE.action.UserAction">
|
23 | <action name="doUserAdd" method="add" class="ch.ffhs.webE.action.UserAction">
|
22 | <result name="success">/admin/userAdd.jsp</result> |
24 | <result name="success">/admin/userAdd.jsp</result> |
23 | </action>
|
25 | </action>
|
24 | 26 | ||
25 | <action name="userList" method="list" class="ch.ffhs.webE.action.UserAction">
|
27 | <action name="userList" method="list" class="ch.ffhs.webE.action.UserAction">
|
26 | <result name="success">/admin/userList.jsp</result> |
28 | <result name="success">/admin/userList.jsp</result> |
27 | </action>
|
29 | </action>
|
28 | 30 | ||
29 | <action name="deleteUser" method="delete" class="ch.ffhs.webE.action.UserAction">
|
31 | <action name="deleteUser" method="delete" class="ch.ffhs.webE.action.UserAction">
|
30 | <result name="success" type="redirect">/admin/userList</result> |
32 | <result name="success" type="redirect">/admin/userList</result> |
31 | </action>
|
33 | </action>
|
- | 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 | ||
32 | </package>
|
53 | </package>
|
33 | 54 | ||
34 | 55 | ||
35 | 56 | ||
36 | 57 | ||
37 | <!-- Remaining environment of the session-->
|
58 | <!-- Remaining environment of the session-->
|
38 | <package name="default" namespace="" extends="hibernate-default">
|
59 | <package name="default" namespace="" extends="hibernate-default">
|
39 | 60 | ||
40 | <!-- Login -->
|
61 | <!-- Login -->
|
41 | <action name="Login" method="doLogin" class="ch.ffhs.webE.action.LoginAction">
|
62 | <action name="Login" method="doLogin" class="ch.ffhs.webE.action.LoginAction">
|
42 | <result name="admin" type="redirect">/admin/main.jsp</result> |
63 | <result name="admin" type="redirect">/admin/main.jsp</result> |
43 | <result name="user" type="redirect">/user/main.jsp</result> |
64 | <result name="user" type="redirect">/user/main.jsp</result> |
44 | <result name="error" type="redirect">/index.jsp</result> |
65 | <result name="error" type="redirect">/index.jsp</result> |
45 | </action>
|
66 | </action>
|
46 | 67 | ||
47 | <action name="Logout" method="doLogout" class="ch.ffhs.webE.action.LoginAction">
|
68 | <action name="Logout" method="doLogout" class="ch.ffhs.webE.action.LoginAction">
|
48 | <result name="success" type="redirect">/index.jsp</result> |
69 | <result name="success" type="redirect">/index.jsp</result> |
49 | </action>
|
70 | </action>
|
50 | </package>
|
71 | </package>
|
51 | </struts>
|
72 | </struts>
|