Subversion Repositories WebE

Rev

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