Rev 19 | Rev 22 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 19 | Rev 20 | ||
---|---|---|---|
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 | 7 | ||
- | 8 | <!-- User environment -->
|
|
- | 9 | <package name="user" namespace="/user" extends="struts-default">
|
|
- | 10 | ||
- | 11 | </package>
|
|
- | 12 | ||
- | 13 | <!-- Admin environment -->
|
|
7 | <package name="default" extends="hibernate-default">
|
14 | <package name="admin" namespace="/admin" extends="hibernate-default">
|
- | 15 | <action name="userAddForm">
|
|
- | 16 | <result>/admin/userAddForm.jsp</result> |
|
- | 17 | </action>
|
|
8 | 18 | ||
- | 19 | <action name="doUserAdd" method="addForm" class="ch.ffhs.webE.action.UserAction">
|
|
- | 20 | <result name="success" type="redirect">/admin/userAdd.jsp</result> |
|
- | 21 | </action>
|
|
- | 22 | ||
- | 23 | <action name="userList">
|
|
- | 24 | <result>/admin/userList.jsp</result> |
|
- | 25 | </action>
|
|
- | 26 | </package>
|
|
- | 27 | ||
- | 28 | <!-- Remaining environment of the session-->
|
|
- | 29 | <package name="default" namespace="" extends="hibernate-default">
|
|
- | 30 | ||
- | 31 | <!-- Login -->
|
|
9 | <action name="LoginDo" method="verifyUser" class="ch.ffhs.webE.action.LoginAction">
|
32 | <action name="Login" method="doLogin" class="ch.ffhs.webE.action.LoginAction">
|
10 | <result name="admin" type="redirect">/admin_index.jsp</result> |
33 | <result name="admin" type="redirect">/admin/main.jsp</result> |
11 | <result name="user" type="redirect">/user_index.jsp</result> |
34 | <result name="user" type="redirect">/user/main.jsp</result> |
12 | <result name="failed" type="redirect">/index.jsp</result> |
35 | <result name="failed" type="redirect">/index.jsp</result> |
13 | </action>
|
36 | </action>
|
14 | 37 | ||
- | 38 | <action name="Logout" method="doLogout" class="ch.ffhs.webE.action.LoginAction">
|
|
- | 39 | <result name="success" type="redirect">/index.jsp</result> |
|
- | 40 | </action>
|
|
15 | </package>
|
41 | </package>
|
16 | </struts>
|
42 | </struts>
|