Rev 29 | Rev 33 | 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 | |
| 15 | <action name="doTermAdd" method="addOrUpdate" |
||
| 16 | class="ch.ffhs.webE.action.TermAction"> |
||
| 17 | <result name="success">/user/termAdd.jsp</result> |
||
| 18 | </action> |
||
| 19 | </package> |
||
| 20 | |||
| 21 | <!-- Admin environment --> |
||
| 22 | <package name="admin" namespace="/admin" extends="hibernate-default"> |
||
| 23 | |||
| 24 | <!-- User management --> |
||
| 25 | <action name="userAddForm"> |
||
| 26 | <result>/admin/userAddForm.jsp</result> |
||
| 27 | </action> |
||
| 28 | |||
| 29 | <action name="doUserAdd" method="addOrUpdate" |
||
| 30 | class="ch.ffhs.webE.action.UserAction"> |
||
| 31 | <result name="success">/admin/userAdd.jsp</result> |
||
| 32 | </action> |
||
| 33 | |||
| 34 | <action name="userList" method="list" |
||
| 35 | class="ch.ffhs.webE.action.UserAction"> |
||
| 36 | <result name="success">/admin/userList.jsp</result> |
||
| 37 | </action> |
||
| 38 | |||
| 39 | <action name="deleteUser" method="delete" |
||
| 40 | class="ch.ffhs.webE.action.UserAction"> |
||
| 41 | <result name="success" type="redirect">/admin/userList</result> |
||
| 42 | </action> |
||
| 43 | |||
| 44 | <action name="editUser" method="edit" |
||
| 45 | class="ch.ffhs.webE.action.UserAction"> |
||
| 46 | <result name="success">/admin/userAddForm.jsp</result> |
||
| 47 | </action> |
||
| 48 | |||
| 49 | |||
| 50 | |||
| 51 | |||
| 52 | <!-- Relationship Type management --> |
||
| 53 | <action name="relTypeList" method="list" |
||
| 54 | class="ch.ffhs.webE.action.RelationshipTypeAction"> |
||
| 55 | <result name="success">/admin/relTypeList.jsp</result> |
||
| 56 | </action> |
||
| 57 | |||
| 58 | <action name="relTypeAddForm"> |
||
| 59 | <result>/admin/relTypeAddForm.jsp</result> |
||
| 60 | </action> |
||
| 61 | |||
| 62 | <action name="doRelTypeAdd" method="addOrUpdate" |
||
| 63 | class="ch.ffhs.webE.action.RelationshipTypeAction"> |
||
| 64 | <result name="success" type="redirect">/admin/relTypeList</result> |
||
| 65 | </action> |
||
| 66 | |||
| 67 | <action name="deleteRelType" method="delete" |
||
| 68 | class="ch.ffhs.webE.action.RelationshipTypeAction"> |
||
| 69 | <result name="success" type="redirect">/admin/relTypeList</result> |
||
| 70 | </action> |
||
| 71 | |||
| 72 | <action name="editRelType" method="edit" |
||
| 73 | class="ch.ffhs.webE.action.RelationshipTypeAction"> |
||
| 74 | <result name="success">/admin/relTypeAddForm.jsp</result> |
||
| 75 | <result name="error">/admin/adminError.jsp</result> |
||
| 76 | </action> |
||
| 77 | |||
| 78 | </package> |
||
| 79 | |||
| 80 | |||
| 81 | |||
| 82 | |||
| 83 | <!-- Remaining environment of the session --> |
||
| 84 | <package name="default" namespace="" extends="hibernate-default"> |
||
| 85 | |||
| 86 | <!-- Login --> |
||
| 87 | <action name="Login" method="doLogin" class="ch.ffhs.webE.action.LoginAction"> |
||
| 88 | <result name="admin" type="redirect">/admin/main.jsp</result> |
||
| 89 | <result name="user" type="redirect">/user/main.jsp</result> |
||
| 90 | <result name="error" type="redirect">/index.jsp</result> |
||
| 91 | </action> |
||
| 92 | |||
| 93 | <action name="Logout" method="doLogout" |
||
| 94 | class="ch.ffhs.webE.action.LoginAction"> |
||
| 95 | <result name="success" type="redirect">/index.jsp</result> |
||
| 96 | </action> |
||
| 97 | </package> |
||
| 18 | moos | 98 | </struts> |