Subversion Repositories WebE

Rev

Rev 33 | Rev 35 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

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