Rev 31 | 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"> |
||
29 | PointedEar | 10 | <!-- Term management --> |
11 | <action name="termAddForm"> |
||
12 | <result>/user/termAddForm.jsp</result> |
||
13 | </action> |
||
31 | PointedEar | 14 | |
33 | PointedEar | 15 | <action name="doTermAdd" method="add" |
31 | PointedEar | 16 | class="ch.ffhs.webE.action.TermAction"> |
17 | <result name="success">/user/termAdd.jsp</result> |
||
33 | PointedEar | 18 | <result name="error">/user/termAddForm.jsp</result> |
31 | PointedEar | 19 | </action> |
33 | PointedEar | 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> |
||
34 | </action> |
||
31 | PointedEar | 35 | </package> |
36 | |||
37 | <!-- Admin environment --> |
||
38 | <package name="admin" namespace="/admin" extends="hibernate-default"> |
||
39 | |||
40 | <!-- User management --> |
||
41 | <action name="userAddForm"> |
||
42 | <result>/admin/userAddForm.jsp</result> |
||
43 | </action> |
||
44 | |||
45 | <action name="doUserAdd" method="addOrUpdate" |
||
46 | class="ch.ffhs.webE.action.UserAction"> |
||
47 | <result name="success">/admin/userAdd.jsp</result> |
||
48 | </action> |
||
49 | |||
50 | <action name="userList" method="list" |
||
51 | class="ch.ffhs.webE.action.UserAction"> |
||
52 | <result name="success">/admin/userList.jsp</result> |
||
53 | </action> |
||
54 | |||
55 | <action name="deleteUser" method="delete" |
||
56 | class="ch.ffhs.webE.action.UserAction"> |
||
57 | <result name="success" type="redirect">/admin/userList</result> |
||
58 | </action> |
||
59 | |||
60 | <action name="editUser" method="edit" |
||
61 | class="ch.ffhs.webE.action.UserAction"> |
||
62 | <result name="success">/admin/userAddForm.jsp</result> |
||
63 | </action> |
||
64 | |||
65 | |||
66 | |||
67 | |||
68 | <!-- Relationship Type management --> |
||
69 | <action name="relTypeList" method="list" |
||
70 | class="ch.ffhs.webE.action.RelationshipTypeAction"> |
||
71 | <result name="success">/admin/relTypeList.jsp</result> |
||
72 | </action> |
||
73 | |||
74 | <action name="relTypeAddForm"> |
||
75 | <result>/admin/relTypeAddForm.jsp</result> |
||
76 | </action> |
||
77 | |||
78 | <action name="doRelTypeAdd" method="addOrUpdate" |
||
79 | class="ch.ffhs.webE.action.RelationshipTypeAction"> |
||
80 | <result name="success" type="redirect">/admin/relTypeList</result> |
||
81 | </action> |
||
82 | |||
83 | <action name="deleteRelType" method="delete" |
||
84 | class="ch.ffhs.webE.action.RelationshipTypeAction"> |
||
85 | <result name="success" type="redirect">/admin/relTypeList</result> |
||
86 | </action> |
||
87 | |||
88 | <action name="editRelType" method="edit" |
||
89 | class="ch.ffhs.webE.action.RelationshipTypeAction"> |
||
90 | <result name="success">/admin/relTypeAddForm.jsp</result> |
||
91 | <result name="error">/admin/adminError.jsp</result> |
||
92 | </action> |
||
93 | |||
94 | </package> |
||
95 | |||
96 | |||
97 | |||
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> |