Rev 20 | Rev 23 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 20 | Rev 22 | ||
---|---|---|---|
Line 1... | Line 1... | ||
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="false" /> <!-- set to true for more 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="struts-default">
|
9 | <package name="user" namespace="/user" extends="struts-default">
|
10 | 10 | ||
11 | </package>
|
11 | </package>
|
12 | 12 | ||
- | 13 | ||
- | 14 | ||
13 | <!-- Admin environment -->
|
15 | <!-- Admin environment -->
|
14 | <package name="admin" namespace="/admin" extends="hibernate-default">
|
16 | <package name="admin" namespace="/admin" extends="hibernate-default">
|
15 | <action name="userAddForm">
|
17 | <action name="userAddForm">
|
16 | <result>/admin/userAddForm.jsp</result> |
18 | <result>/admin/userAddForm.jsp</result> |
17 | </action>
|
19 | </action>
|
18 | 20 | ||
19 | <action name="doUserAdd" method="addForm" class="ch.ffhs.webE.action.UserAction">
|
21 | <action name="doUserAdd" method="add" class="ch.ffhs.webE.action.UserAction">
|
20 | <result name="success" type="redirect">/admin/userAdd.jsp</result> |
22 | <result name="success">/admin/userAdd.jsp</result> |
- | 23 | </action>
|
|
- | 24 | ||
- | 25 | <action name="userList" method="list" class="ch.ffhs.webE.action.UserAction">
|
|
- | 26 | <result name="success">/admin/userList.jsp</result> |
|
21 | </action>
|
27 | </action>
|
22 | 28 | ||
23 | <action name="userList">
|
29 | <action name="deleteUser" method="delete" class="ch.ffhs.webE.action.UserAction">
|
24 | <result>/admin/userList.jsp</result> |
30 | <result name="success" type="redirect">/admin/userList</result> |
25 | </action>
|
31 | </action>
|
26 | </package>
|
32 | </package>
|
27 | 33 | ||
- | 34 | ||
- | 35 | ||
- | 36 | ||
28 | <!-- Remaining environment of the session-->
|
37 | <!-- Remaining environment of the session-->
|
29 | <package name="default" namespace="" extends="hibernate-default">
|
38 | <package name="default" namespace="" extends="hibernate-default">
|
30 | 39 | ||
31 | <!-- Login -->
|
40 | <!-- Login -->
|
32 | <action name="Login" method="doLogin" class="ch.ffhs.webE.action.LoginAction">
|
41 | <action name="Login" method="doLogin" class="ch.ffhs.webE.action.LoginAction">
|