Rev 31 | Rev 34 | Go to most recent revision | Only display areas with differences | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 31 | Rev 33 | ||
---|---|---|---|
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="hibernate-default">
|
9 | <package name="user" namespace="/user" extends="hibernate-default">
|
10 | <!-- Term management -->
|
10 | <!-- Term management -->
|
11 | <action name="termAddForm">
|
11 | <action name="termAddForm">
|
12 | <result>/user/termAddForm.jsp</result> |
12 | <result>/user/termAddForm.jsp</result> |
13 | </action>
|
13 | </action>
|
14 | 14 | ||
15 | <action name="doTermAdd" method="addOrUpdate"
|
15 | <action name="doTermAdd" method="add"
|
16 | class="ch.ffhs.webE.action.TermAction">
|
16 | class="ch.ffhs.webE.action.TermAction">
|
17 | <result name="success">/user/termAdd.jsp</result> |
17 | <result name="success">/user/termAdd.jsp</result> |
- | 18 | <result name="error">/user/termAddForm.jsp</result> |
|
- | 19 | </action>
|
|
- | 20 | ||
- | 21 | <action name="termList" method="list"
|
|
- | 22 | class="ch.ffhs.webE.action.TermAction">
|
|
- | 23 | <result name="success">/user/termList.jsp</result> |
|
- | 24 | </action>
|
|
- | 25 | ||
- | 26 | <action name="deleteTerm" method="delete"
|
|
- | 27 | class="ch.ffhs.webE.action.TermAction">
|
|
- | 28 | <result name="success" type="redirect">/user/termList</result> |
|
- | 29 | </action>
|
|
- | 30 | ||
- | 31 | <action name="editTerm" method="edit"
|
|
- | 32 | class="ch.ffhs.webE.action.TermAction">
|
|
- | 33 | <result name="success">/user/termAddForm.jsp</result> |
|
18 | </action>
|
34 | </action>
|
19 | </package>
|
35 | </package>
|
20 | 36 | ||
21 | <!-- Admin environment -->
|
37 | <!-- Admin environment -->
|
22 | <package name="admin" namespace="/admin" extends="hibernate-default">
|
38 | <package name="admin" namespace="/admin" extends="hibernate-default">
|
23 | 39 | ||
24 | <!-- User management -->
|
40 | <!-- User management -->
|
25 | <action name="userAddForm">
|
41 | <action name="userAddForm">
|
26 | <result>/admin/userAddForm.jsp</result> |
42 | <result>/admin/userAddForm.jsp</result> |
27 | </action>
|
43 | </action>
|
28 | 44 | ||
29 | <action name="doUserAdd" method="addOrUpdate"
|
45 | <action name="doUserAdd" method="addOrUpdate"
|
30 | class="ch.ffhs.webE.action.UserAction">
|
46 | class="ch.ffhs.webE.action.UserAction">
|
31 | <result name="success">/admin/userAdd.jsp</result> |
47 | <result name="success">/admin/userAdd.jsp</result> |
32 | </action>
|
48 | </action>
|
33 | 49 | ||
34 | <action name="userList" method="list"
|
50 | <action name="userList" method="list"
|
35 | class="ch.ffhs.webE.action.UserAction">
|
51 | class="ch.ffhs.webE.action.UserAction">
|
36 | <result name="success">/admin/userList.jsp</result> |
52 | <result name="success">/admin/userList.jsp</result> |
37 | </action>
|
53 | </action>
|
38 | 54 | ||
39 | <action name="deleteUser" method="delete"
|
55 | <action name="deleteUser" method="delete"
|
40 | class="ch.ffhs.webE.action.UserAction">
|
56 | class="ch.ffhs.webE.action.UserAction">
|
41 | <result name="success" type="redirect">/admin/userList</result> |
57 | <result name="success" type="redirect">/admin/userList</result> |
42 | </action>
|
58 | </action>
|
43 | 59 | ||
44 | <action name="editUser" method="edit"
|
60 | <action name="editUser" method="edit"
|
45 | class="ch.ffhs.webE.action.UserAction">
|
61 | class="ch.ffhs.webE.action.UserAction">
|
46 | <result name="success">/admin/userAddForm.jsp</result> |
62 | <result name="success">/admin/userAddForm.jsp</result> |
47 | </action>
|
63 | </action>
|
48 | 64 | ||
49 | 65 | ||
50 | 66 | ||
51 | 67 | ||
52 | <!-- Relationship Type management -->
|
68 | <!-- Relationship Type management -->
|
53 | <action name="relTypeList" method="list"
|
69 | <action name="relTypeList" method="list"
|
54 | class="ch.ffhs.webE.action.RelationshipTypeAction">
|
70 | class="ch.ffhs.webE.action.RelationshipTypeAction">
|
55 | <result name="success">/admin/relTypeList.jsp</result> |
71 | <result name="success">/admin/relTypeList.jsp</result> |
56 | </action>
|
72 | </action>
|
57 | 73 | ||
58 | <action name="relTypeAddForm">
|
74 | <action name="relTypeAddForm">
|
59 | <result>/admin/relTypeAddForm.jsp</result> |
75 | <result>/admin/relTypeAddForm.jsp</result> |
60 | </action>
|
76 | </action>
|
61 | 77 | ||
62 | <action name="doRelTypeAdd" method="addOrUpdate"
|
78 | <action name="doRelTypeAdd" method="addOrUpdate"
|
63 | class="ch.ffhs.webE.action.RelationshipTypeAction">
|
79 | class="ch.ffhs.webE.action.RelationshipTypeAction">
|
64 | <result name="success" type="redirect">/admin/relTypeList</result> |
80 | <result name="success" type="redirect">/admin/relTypeList</result> |
65 | </action>
|
81 | </action>
|
66 | 82 | ||
67 | <action name="deleteRelType" method="delete"
|
83 | <action name="deleteRelType" method="delete"
|
68 | class="ch.ffhs.webE.action.RelationshipTypeAction">
|
84 | class="ch.ffhs.webE.action.RelationshipTypeAction">
|
69 | <result name="success" type="redirect">/admin/relTypeList</result> |
85 | <result name="success" type="redirect">/admin/relTypeList</result> |
70 | </action>
|
86 | </action>
|
71 | 87 | ||
72 | <action name="editRelType" method="edit"
|
88 | <action name="editRelType" method="edit"
|
73 | class="ch.ffhs.webE.action.RelationshipTypeAction">
|
89 | class="ch.ffhs.webE.action.RelationshipTypeAction">
|
74 | <result name="success">/admin/relTypeAddForm.jsp</result> |
90 | <result name="success">/admin/relTypeAddForm.jsp</result> |
75 | <result name="error">/admin/adminError.jsp</result> |
91 | <result name="error">/admin/adminError.jsp</result> |
76 | </action>
|
92 | </action>
|
77 | 93 | ||
78 | </package>
|
94 | </package>
|
79 | 95 | ||
80 | 96 | ||
81 | 97 | ||
82 | 98 | ||
83 | <!-- Remaining environment of the session -->
|
99 | <!-- Remaining environment of the session -->
|
84 | <package name="default" namespace="" extends="hibernate-default">
|
100 | <package name="default" namespace="" extends="hibernate-default">
|
85 | 101 | ||
86 | <!-- Login -->
|
102 | <!-- Login -->
|
87 | <action name="Login" method="doLogin" class="ch.ffhs.webE.action.LoginAction">
|
103 | <action name="Login" method="doLogin" class="ch.ffhs.webE.action.LoginAction">
|
88 | <result name="admin" type="redirect">/admin/main.jsp</result> |
104 | <result name="admin" type="redirect">/admin/main.jsp</result> |
89 | <result name="user" type="redirect">/user/main.jsp</result> |
105 | <result name="user" type="redirect">/user/main.jsp</result> |
90 | <result name="error" type="redirect">/index.jsp</result> |
106 | <result name="error" type="redirect">/index.jsp</result> |
91 | </action>
|
107 | </action>
|
92 | 108 | ||
93 | <action name="Logout" method="doLogout"
|
109 | <action name="Logout" method="doLogout"
|
94 | class="ch.ffhs.webE.action.LoginAction">
|
110 | class="ch.ffhs.webE.action.LoginAction">
|
95 | <result name="success" type="redirect">/index.jsp</result> |
111 | <result name="success" type="redirect">/index.jsp</result> |
96 | </action>
|
112 | </action>
|
97 | </package>
|
113 | </package>
|
98 | </struts>
|
114 | </struts>
|