Commits

Anonymous committed dee0988

organize jsp/vm pages

git-svn-id: http://svn.opensymphony.com/svn/quartz/trunk@22969f7d36a-ea1c-0410-88ea-9fd03e4c9665

  • Participants
  • Parent commits b8ab821

Comments (0)

Files changed (1)

File webapp/config/resources/xwork.xml

 		<default-interceptor-ref name="defaultStack"/>
 		
 		<global-results>
-			 	<result name="scheduler" type="redirect">/jobs/schedulerDown.vm</result>		
+			 	<result name="scheduler" type="redirect">/schedule/down.vm</result>		
 		</global-results>
 			
 		<action name="logout" class="org.quartz.ui.web.base.BaseWebWork" method="logout" >
 		<default-interceptor-ref name="schedulingDefault"/>
 		
 		<action name="createJob" class="org.quartz.ui.web.action.job.CreateJob" method="start">
-			<result name="input" type="velocity">/WEB-INF/vm/createJob.vm</result>
-			<result name="success" type="velocity">/WEB-INF/vm/createJob.vm</result>
-			<result name="error" type="velocity">/WEB-INF/vm/editDefinition.vm</result>
+			<result name="input" type="velocity">/jobs/createJob.vm</result>
+			<result name="success" type="velocity">/jobs/createJob.vm</result>
+			<result name="error" type="velocity">/jobs/createJob.vm</result>
 		</action>
 
 		<action name="createDefinedJob" class="org.quartz.ui.web.action.job.CreateDefJob" method="start">
-			<result name="input" type="velocity">/WEB-INF/vm/createDefinedJob.vm</result>
-			<result name="success" type="velocity">/WEB-INF/vm/createDefinedJob.vm</result>
-			<result name="error" type="velocity">/WEB-INF/vm/editDefinition.vm</result>
+			<result name="input" type="velocity">/jobs/definition/createDefinedJob.vm</result>
+			<result name="success" type="velocity">/jobs/definition/createDefinedJob.vm</result>
+			<result name="error" type="velocity">/jobs/definition/edit.vm</result>
 		</action>
 	
 		<action name="saveDefinedJob" class="org.quartz.ui.web.action.job.CreateDefJob" >
 			<interceptor-ref name="schedulingCRUD"/>
-			<result name="input" type="velocity">/WEB-INF/vm/createDefinedJob.vm</result>
+			<result name="input" type="velocity">/jobs/definition/createDefinedJob.vm</result>
 			<result name="success" type="chain">viewJob</result>
-			<result name="error" type="velocity">/WEB-INF/vm/createDefinedJob.vm</result>
+			<result name="error" type="velocity">/jobs/definition/createDefinedJob.vm</result>
 		</action>
 		
 		<action name="viewJob" class="org.quartz.ui.web.action.job.SimpleJobActions" method="view" >
-			<result name="success" type="velocity">/WEB-INF/vm/viewJob.vm</result>
-			<result name="error" type="velocity">/WEB-INF/vm/createDefinedJob.vm</result>
+			<result name="success" type="velocity">/jobs/viewJob.vm</result>
+			<result name="error" type="velocity">/jobs/definition/createDefinedJob.vm</result>
 		</action>
 		
 		<action name="deleteJob" class="org.quartz.ui.web.action.job.SimpleJobActions" method="delete" >
 		<action name="executeJob" class="org.quartz.ui.web.action.job.SimpleJobActions" method="runNow" >
 			<interceptor-ref name="schedulingCRUD"/>
 			<result name="success" type="chain">viewJob</result>
-			<result name="error" type="velocity">/WEB-INF/vm/viewJob.vm</result>
+			<result name="error" type="velocity">/jobs/viewJob.vm</result>
 		</action>
 	
 		<action name="editJob" class="org.quartz.ui.web.action.job.CreateJob" method="edit">
-			<result name="input" type="velocity">/WEB-INF/vm/createJob.vm</result>
-			<result name="success" type="velocity">/WEB-INF/vm/createJob.vm</result>
-			<result name="error" type="velocity">/WEB-INF/vm/editDefinition.vm</result>
+			<result name="input" type="velocity">/jobs/createJob.vm</result>
+			<result name="success" type="velocity">/jobs/createJob.vm</result>
+			<result name="error" type="velocity">/jobs/definition/edit.vm</result>
 		</action>
 
 		<action name="saveJob" class="org.quartz.ui.web.action.job.CreateJob">
 			<interceptor-ref name="schedulingCRUD"/>
-			<result name="input" type="velocity">/WEB-INF/vm/createJob.vm</result>
+			<result name="input" type="velocity">/jobs/createJob.vm</result>
 			<result name="success" type="chain">viewJob</result>
-			<result name="error" type="velocity">/WEB-INF/vm/editDefinition.vm</result>
+			<result name="error" type="velocity">/jobs/definition/edit.vm</result>
 		</action>
 	
 	
 	
 		<action name="listJobs" class="org.quartz.ui.web.action.schedule.ListJobs">
 			<result name="success" type="dispatcher">/WEB-INF/jsp/listAllJobs.jsp</result>
-			<result name="error" type="velocity">/WEB-INF/vm/editDefinition.vm</result>
 		</action>
 
 		<action name="scheduleControl" class="org.quartz.ui.web.action.schedule.ScheduleControler" >
 			<interceptor-ref name="validationWorkflowStack"/>
-			<result name="input" type="velocity">/WEB-INF/vm/chooseScheduler.vm</result>
-			<result name="success" type="velocity">/WEB-INF/vm/chooseScheduler.vm</result>
-			<result name="error" type="velocity">/WEB-INF/vm/chooseScheduler.vm</result>
+			<result name="input" type="velocity">/schedule/chooseScheduler.vm</result>
+			<result name="success" type="velocity">/schedule/chooseScheduler.vm</result>
+			<result name="error" type="velocity">/schedule/chooseScheduler.vm</result>
 		</action>
 					
 		<action name="unschedule" class="org.quartz.ui.web.action.schedule.UnSchedule">
 				<param name="actionName">listJobs</param>
 				<param name="namespace">/schedule</param>
 			</result>			
-			<result name="error" type="velocity">/WEB-INF/vm/editDefinition.vm</result>
 		</action>
 
 		<action name="startSchedule" class="org.quartz.ui.web.action.schedule.SimpleTriggerAction" method="start">
-			<result name="input" type="velocity">/WEB-INF/vm/CreateSimpleTrigger.vm</result>
-			<result name="success" type="velocity">/WEB-INF/vm/CreateSimpleTrigger.vm</result>
-			<result name="error" type="velocity">/WEB-INF/vm/editDefinition.vm</result>
+			<result name="input" type="velocity">/schedule/createSimpleTrigger.vm</result>
+			<result name="success" type="velocity">/schedule/createSimpleTrigger.vm</result>
 		</action>
 
 		<action name="simpleSchedule" class="org.quartz.ui.web.action.schedule.SimpleTriggerAction">
 			<interceptor-ref name="schedulingCRUD"/>
-			<result name="input" type="velocity">/WEB-INF/vm/CreateSimpleTrigger.vm</result>
+			<result name="input" type="velocity">/schedule/createSimpleTrigger.vm</result>
 			<result name="success" type="chain">
 				<param name="actionName">viewJob</param>
 				<param name="namespace">/jobs</param>
 			</result>			
-			<result name="error" type="velocity">/WEB-INF/vm/CreateSimpleTrigger.vm</result>
+			<result name="error" type="velocity">/schedule/createSimpleTrigger.vm</result>
 		</action>
   
   		<action name="startCronSchedule" class="org.quartz.ui.web.action.schedule.CronTriggerAction" method="start">
 			<interceptor-ref name="schedulingCRUD"/>
-			<result name="input" type="velocity">/WEB-INF/vm/createCronTrigger.vm</result>
-			<result name="success" type="velocity">/WEB-INF/vm/createCronTrigger.vm</result>
-			<result name="error" type="velocity">/WEB-INF/vm/editDefinition.vm</result>
+			<result name="input" type="velocity">/schedule/createCronTrigger.vm</result>
+			<result name="success" type="velocity">/schedule/createCronTrigger.vm</result>
 		</action>
   
 		<action name="cronSchedule" class="org.quartz.ui.web.action.schedule.CronTriggerAction">
 			<interceptor-ref name="schedulingCRUD"/>
-			<result name="input" type="velocity">/WEB-INF/vm/createCronTrigger.vm</result>
+			<result name="input" type="velocity">/schedule/createCronTrigger.vm</result>
 			<result name="success" type="chain">
 				<param name="actionName">viewJob</param>
 				<param name="namespace">/jobs</param>
 			</result>			
-			<result name="error" type="velocity">/WEB-INF/vm/createCronTrigger.vm</result>
+			<result name="error" type="velocity">/schedule/createCronTrigger.vm</result>
 		</action>
 	  	
 	  		
 	  	<action name="startUICronSchedule" class="org.quartz.ui.web.action.schedule.UICronTriggerAction" method="start">
-			<result name="success" type="velocity">/WEB-INF/vm/createUICronTrigger.vm</result>
-			<result name="input" type="velocity">/WEB-INF/vm/createUICronTrigger.vm</result>
+			<result name="success" type="velocity">/schedule/createUICronTrigger.vm</result>
+			<result name="input" type="velocity">/schedule/createUICronTrigger.vm</result>
 		</action>
 	  	
 	  	
 	  	<action name="uiCronSchedule" class="org.quartz.ui.web.action.schedule.UICronTriggerAction">
 			<interceptor-ref name="schedulingCRUD"/>
-			<result name="input" type="velocity">/WEB-INF/vm/createUICronTrigger.vm</result>
+			<result name="input" type="velocity">/schedule/createUICronTrigger.vm</result>
 			<result name="success" type="chain">
 				<param name="actionName">viewJob</param>
 				<param name="namespace">/jobs</param>
 			</result>			
-			<result name="error" type="velocity">/WEB-INF/vm/createUICronTrigger.vm</result>
+			<result name="error" type="velocity">//schedule/createUICronTrigger.vm</result>
 		</action>
   
 		<action name="listTriggers" class="org.quartz.ui.web.action.schedule.ListTriggers">
-			<result name="success" type="dispatcher">/WEB-INF/jsp/listAllTriggers.jsp</result>
-			<result name="error" type="dispatcher">/WEB-INF/jsp/listAllTriggers.jsp</result>
+			<result name="success" type="dispatcher">/schedule/listAllTriggers.jsp</result>
+			<result name="error" type="dispatcher">/schedule/listAllTriggers.jsp</result>
 	
 		</action>
 
 
 		<action name="add" class="org.quartz.ui.web.action.definitions.DefinitionCrud">
 			<interceptor-ref name="validationWorkflowStack"/>
-			<result name="input" type="velocity">/WEB-INF/vm/editDefinition.vm</result>
-			<result name="success" type="velocity">/WEB-INF/vm/editDefinition.vm</result>
-			<result name="error" type="velocity">/WEB-INF/vm/editDefinition.vm</result>
+			<result name="input" type="velocity">/jobs/definition/edit.vm</result>
+			<result name="success" type="velocity">/jobs/definition/edit.vm</result>
+			<result name="error" type="velocity">/jobs/definition/edit.vm</result>
 		</action>
 
 		<action name="view" class="org.quartz.ui.web.action.definitions.Load">
-			<result name="input" type="velocity">/WEB-INF/vm/editDefinition.vm</result>
-			<result name="success" type="velocity">/WEB-INF/vm/editDefinition.vm</result>
-			<result name="error" type="velocity">/WEB-INF/vm/editDefinition.vm</result>
+			<result name="input" type="velocity">/jobs/definition/edit.vm</result>
+			<result name="success" type="velocity">/jobs/definition/edit.vm</result>
+			<result name="error" type="velocity">/jobs/definition/edit.vm</result>
 		</action>
 
 		<action name="addParameter" class="org.quartz.ui.web.action.definitions.Parameter">
 			<interceptor-ref name="validationWorkflowStack"/>
-			<result name="input" type="velocity">/WEB-INF/vm/editDefinition.vm</result>
-			<result name="success" type="velocity">/WEB-INF/vm/editDefinition.vm</result>
-			<result name="error" type="velocity">/WEB-INF/vm/editDefinition.vm</result>
+			<result name="input" type="velocity">/jobs/definition/edit.vm</result>
+			<result name="success" type="velocity">/jobs/definition/edit.vm</result>
+			<result name="error" type="velocity">/jobs/definition/edit.vm</result>
 		</action>
 
 		<action name="list" class="org.quartz.ui.web.action.definitions.Load" method="list">
-			<result name="success" type="velocity">/WEB-INF/vm/definitions.vm</result>
+			<result name="success" type="velocity">/jobs/definition/definitions.vm</result>
 		</action>
 
 		<action name="delete" class="org.quartz.ui.web.action.definitions.Delete">
 		</action>
 
 		<action name="raw" class="org.quartz.ui.web.action.definitions.Raw">
-			<result name="success" type="velocity">/WEB-INF/vm/raw.vm</result>
+			<result name="success" type="velocity">/jobs/definition/raw.vm</result>
 		</action>
 
 		<action name="removeParameter" method="removeParameter" class="org.quartz.ui.web.action.definitions.Parameter">
 			<interceptor-ref name="validationWorkflowStack"/>
-			<result name="input" type="velocity">/WEB-INF/vm/editDefinition.vm</result>
-			<result name="success" type="velocity">/WEB-INF/vm/editDefinition.vm</result>
+			<result name="input" type="velocity">/jobs/definition/edit.vm</result>
+			<result name="success" type="velocity">/jobs/definition/edit.vm</result>
 		</action>
 
 	</package>