Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="UTF-8"?>
- <!DOCTYPE struts PUBLIC
- "-//Apache Software Foundation//DTD Struts Configuration 2.1//EN"
- "http://struts.apache.org/dtds/struts-2.1.dtd">
- <struts>
- <package name="default" extends="tiles-default">
- <!-- All actions concerning an Object-->
- <!-- Action that displays the list of objects. -->
- <action name="ShowObjectList" class="de.nak.cars.action.ShowObjectListAction">
- <result name="STUDENT" type="tiles">objectListStudent</result>
- <result name="LECTURER" type="tiles">objectListLecturer</result>
- <result name="NONE" type="redirect">login?noAuthorities</result>
- </action>
- <!-- Shows the empty form for a new object. -->
- <action name="AddObject">
- <result type="tiles">objectForm</result>
- </action>
- <!-- Saves the new or updated object into the database and shows the object
- list again. -->
- <action name="SaveObject" class="de.nak.cars.action.ObjectAction"
- method="save">
- <result type="redirect">ShowObjectList.action</result>
- <result type="tiles" name="input">objectForm</result>
- </action>
- <!-- Loads a existing object and shows it in the object form. -->
- <action name="EditObject" class="de.nak.cars.action.ObjectAction"
- method="load">
- <result type="tiles">objectForm</result>
- <result type="chain" name="input">ShowObjectList</result>
- </action>
- <!-- All actions concerning a attachedObject -->
- <action name="ShowObject" class="de.nak.cars.action.ObjectAction"
- method="load">
- <result type="tiles">objectForm</result>
- <result name="input" type="tiles">attachedObjectForm</result>
- </action>
- <!-- Shows the empty form for a new attachedObject. -->
- <action name="AddAttachedObject" class="de.nak.cars.action.ShowAttachedObjectAction">
- <result type="tiles">attachedObjectForm</result>
- <result name="input" type="tiles">objectForm</result>
- </action>
- <!-- Loads a existing attachedObject and shows it in the attachedObject form. -->
- <action name="EditAttachedObject" class="de.nak.cars.action.AttachedObjectAction"
- method="load">
- <result type="tiles">attachedObjectForm</result>
- <result type="tiles" name="input">objectForm</result>
- </action>
- <!-- Saves the new or updated attachedObject into the database and shows the
- object again. -->
- <action name="SaveAttachedObject" class="de.nak.cars.action.AttachedObjectAction"
- method="save">
- <result name="success" type="redirect">ShowObject.action</result>
- <result type="tiles" name="input">attachedObjectForm</result>
- </action>
- </package>
- </struts>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement