Rev 35 | 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"> |
37 | PointedEar | 17 | <result type="redirect">/user/listTerms</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 | |||
37 | PointedEar | 55 | <action name="listUsers" method="list" |
31 | PointedEar | 56 | class="ch.ffhs.webE.action.UserAction"> |
37 | PointedEar | 57 | <result name="success">/admin/users.jsp</result> |
31 | PointedEar | 58 | </action> |
59 | |||
37 | PointedEar | 60 | <action name="saveUser" method="save" |
31 | PointedEar | 61 | class="ch.ffhs.webE.action.UserAction"> |
37 | PointedEar | 62 | <result type="redirect">/admin/listUsers</result> |
31 | PointedEar | 63 | </action> |
64 | |||
65 | <action name="deleteUser" method="delete" |
||
66 | class="ch.ffhs.webE.action.UserAction"> |
||
37 | PointedEar | 67 | <result name="success" type="redirect">/admin/listUsers</result> |
31 | PointedEar | 68 | </action> |
69 | |||
70 | <action name="editUser" method="edit" |
||
71 | class="ch.ffhs.webE.action.UserAction"> |
||
37 | PointedEar | 72 | <result name="success">/admin/users.jsp</result> |
31 | PointedEar | 73 | </action> |
74 | |||
75 | <!-- Relationship Type management --> |
||
37 | PointedEar | 76 | <action name="listRelTypes" method="list" |
31 | PointedEar | 77 | class="ch.ffhs.webE.action.RelationshipTypeAction"> |
37 | PointedEar | 78 | <result name="success">/admin/relTypes.jsp</result> |
31 | PointedEar | 79 | </action> |
80 | |||
81 | <action name="doRelTypeAdd" method="addOrUpdate" |
||
82 | class="ch.ffhs.webE.action.RelationshipTypeAction"> |
||
37 | PointedEar | 83 | <result name="success" type="redirect">/admin/listRelTypes</result> |
31 | PointedEar | 84 | </action> |
85 | |||
86 | <action name="deleteRelType" method="delete" |
||
87 | class="ch.ffhs.webE.action.RelationshipTypeAction"> |
||
37 | PointedEar | 88 | <result name="success" type="redirect">/admin/listRelTypes</result> |
31 | PointedEar | 89 | </action> |
90 | |||
91 | <action name="editRelType" method="edit" |
||
92 | class="ch.ffhs.webE.action.RelationshipTypeAction"> |
||
37 | PointedEar | 93 | <result name="success">/admin/relTypes.jsp</result> |
31 | PointedEar | 94 | <result name="error">/admin/adminError.jsp</result> |
95 | </action> |
||
96 | |||
97 | </package> |
||
98 | |||
99 | <!-- Remaining environment of the session --> |
||
100 | <package name="default" namespace="" extends="hibernate-default"> |
||
101 | |||
102 | <!-- Login --> |
||
103 | <action name="Login" method="doLogin" class="ch.ffhs.webE.action.LoginAction"> |
||
104 | <result name="admin" type="redirect">/admin/main.jsp</result> |
||
105 | <result name="user" type="redirect">/user/main.jsp</result> |
||
106 | <result name="error" type="redirect">/index.jsp</result> |
||
107 | </action> |
||
108 | |||
109 | <action name="Logout" method="doLogout" |
||
110 | class="ch.ffhs.webE.action.LoginAction"> |
||
111 | <result name="success" type="redirect">/index.jsp</result> |
||
112 | </action> |
||
113 | </package> |
||
18 | moos | 114 | </struts> |