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