Rev 34 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
18 | moos | 1 | <!DOCTYPE struts PUBLIC |
2 | "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN" |
||
3 | "http://struts.apache.org/dtds/struts-2.0.dtd"> |
||
4 | |||
5 | <struts> |
||
31 | PointedEar | 6 | <constant name="struts.devMode" value="true" /> <!-- activates debugging output --> |
7 | |||
8 | <!-- User environment --> |
||
9 | <package name="user" namespace="/user" extends="hibernate-default"> |
||
35 | PointedEar | 10 | <!-- Terms management --> |
11 | <action name="listTerms" method="list" |
||
12 | class="ch.ffhs.webE.action.TermAction"> |
||
13 | <result name="success">/user/terms.jsp</result> |
||
29 | PointedEar | 14 | </action> |
35 | PointedEar | 15 | <action name="saveTerm" method="save" |
31 | PointedEar | 16 | class="ch.ffhs.webE.action.TermAction"> |
35 | PointedEar | 17 | <result>/user/terms.jsp</result> |
31 | PointedEar | 18 | </action> |
35 | PointedEar | 19 | <action name="editTerm" method="edit" |
33 | PointedEar | 20 | class="ch.ffhs.webE.action.TermAction"> |
35 | PointedEar | 21 | <result>/user/terms.jsp</result> |
33 | PointedEar | 22 | </action> |
23 | <action name="deleteTerm" method="delete" |
||
24 | class="ch.ffhs.webE.action.TermAction"> |
||
35 | PointedEar | 25 | <result>/user/terms.jsp</result> |
33 | PointedEar | 26 | </action> |
27 | |||
35 | PointedEar | 28 | <!-- Relationships management --> |
29 | <action name="listRelationships" method="list" |
||
30 | class="ch.ffhs.webE.action.RelationshipAction"> |
||
31 | <result name="success">/user/relationships.jsp</result> |
||
33 | PointedEar | 32 | </action> |
35 | PointedEar | 33 | <action name="saveRelationship" method="save" |
34 | PointedEar | 34 | class="ch.ffhs.webE.action.RelationshipAction"> |
35 | PointedEar | 35 | <result>/user/relationships.jsp</result> |
34 | PointedEar | 36 | </action> |
35 | PointedEar | 37 | <action name="editRelationship" method="edit" |
34 | PointedEar | 38 | class="ch.ffhs.webE.action.RelationshipAction"> |
35 | PointedEar | 39 | <result>/user/relationships.jsp</result> |
34 | PointedEar | 40 | </action> |
35 | PointedEar | 41 | <action name="deleteRelationship" method="delete" |
34 | PointedEar | 42 | class="ch.ffhs.webE.action.RelationshipAction"> |
35 | PointedEar | 43 | <result>/user/relationships.jsp</result> |
34 | PointedEar | 44 | </action> |
31 | PointedEar | 45 | </package> |
46 | |||
47 | <!-- Admin environment --> |
||
48 | <package name="admin" namespace="/admin" extends="hibernate-default"> |
||
49 | |||
50 | <!-- User management --> |
||
51 | <action name="userAddForm"> |
||
52 | <result>/admin/userAddForm.jsp</result> |
||
53 | </action> |
||
54 | |||
55 | <action name="doUserAdd" method="addOrUpdate" |
||
56 | class="ch.ffhs.webE.action.UserAction"> |
||
57 | <result name="success">/admin/userAdd.jsp</result> |
||
58 | </action> |
||
59 | |||
60 | <action name="userList" method="list" |
||
61 | class="ch.ffhs.webE.action.UserAction"> |
||
62 | <result name="success">/admin/userList.jsp</result> |
||
63 | </action> |
||
64 | |||
65 | <action name="deleteUser" method="delete" |
||
66 | class="ch.ffhs.webE.action.UserAction"> |
||
67 | <result name="success" type="redirect">/admin/userList</result> |
||
68 | </action> |
||
69 | |||
70 | <action name="editUser" method="edit" |
||
71 | class="ch.ffhs.webE.action.UserAction"> |
||
72 | <result name="success">/admin/userAddForm.jsp</result> |
||
73 | </action> |
||
74 | |||
75 | |||
76 | |||
77 | |||
78 | <!-- Relationship Type management --> |
||
79 | <action name="relTypeList" method="list" |
||
80 | class="ch.ffhs.webE.action.RelationshipTypeAction"> |
||
81 | <result name="success">/admin/relTypeList.jsp</result> |
||
82 | </action> |
||
83 | |||
84 | <action name="relTypeAddForm"> |
||
85 | <result>/admin/relTypeAddForm.jsp</result> |
||
86 | </action> |
||
87 | |||
88 | <action name="doRelTypeAdd" method="addOrUpdate" |
||
89 | class="ch.ffhs.webE.action.RelationshipTypeAction"> |
||
90 | <result name="success" type="redirect">/admin/relTypeList</result> |
||
91 | </action> |
||
92 | |||
93 | <action name="deleteRelType" method="delete" |
||
94 | class="ch.ffhs.webE.action.RelationshipTypeAction"> |
||
95 | <result name="success" type="redirect">/admin/relTypeList</result> |
||
96 | </action> |
||
97 | |||
98 | <action name="editRelType" method="edit" |
||
99 | class="ch.ffhs.webE.action.RelationshipTypeAction"> |
||
100 | <result name="success">/admin/relTypeAddForm.jsp</result> |
||
101 | <result name="error">/admin/adminError.jsp</result> |
||
102 | </action> |
||
103 | |||
104 | </package> |
||
105 | |||
106 | |||
107 | |||
108 | |||
109 | <!-- Remaining environment of the session --> |
||
110 | <package name="default" namespace="" extends="hibernate-default"> |
||
111 | |||
112 | <!-- Login --> |
||
113 | <action name="Login" method="doLogin" class="ch.ffhs.webE.action.LoginAction"> |
||
114 | <result name="admin" type="redirect">/admin/main.jsp</result> |
||
115 | <result name="user" type="redirect">/user/main.jsp</result> |
||
116 | <result name="error" type="redirect">/index.jsp</result> |
||
117 | </action> |
||
118 | |||
119 | <action name="Logout" method="doLogout" |
||
120 | class="ch.ffhs.webE.action.LoginAction"> |
||
121 | <result name="success" type="redirect">/index.jsp</result> |
||
122 | </action> |
||
123 | </package> |
||
18 | moos | 124 | </struts> |