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