| 3,7 → 3,7 |
| "http://struts.apache.org/dtds/struts-2.0.dtd"> |
| |
| <struts> |
| <constant name="struts.devMode" value="false" /> <!-- set to true for more debugging output --> |
| <constant name="struts.devMode" value="true" /> <!-- activates debugging output --> |
| |
| <!-- User environment --> |
| <package name="user" namespace="/user" extends="struts-default"> |
| 10,6 → 10,8 |
| |
| </package> |
| |
| |
| |
| <!-- Admin environment --> |
| <package name="admin" namespace="/admin" extends="hibernate-default"> |
| <action name="userAddForm"> |
| 16,15 → 18,22 |
| <result>/admin/userAddForm.jsp</result> |
| </action> |
| |
| <action name="doUserAdd" method="addForm" class="ch.ffhs.webE.action.UserAction"> |
| <result name="success" type="redirect">/admin/userAdd.jsp</result> |
| <action name="doUserAdd" method="add" class="ch.ffhs.webE.action.UserAction"> |
| <result name="success">/admin/userAdd.jsp</result> |
| </action> |
| |
| <action name="userList"> |
| <result>/admin/userList.jsp</result> |
| <action name="userList" method="list" class="ch.ffhs.webE.action.UserAction"> |
| <result name="success">/admin/userList.jsp</result> |
| </action> |
| |
| <action name="deleteUser" method="delete" class="ch.ffhs.webE.action.UserAction"> |
| <result name="success" type="redirect">/admin/userList</result> |
| </action> |
| </package> |
| |
| |
| |
| |
| <!-- Remaining environment of the session--> |
| <package name="default" namespace="" extends="hibernate-default"> |
| |