strutsCofig

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.3//EN" "http://struts.apache.org/dtds/struts-config_1_3.dtd">
<struts-config>
  <form-beans>
    <form-bean name="taskForm" type="com.huawei.deployer.view.TaskForm"></form-bean>
    <form-bean name="elementObjectForm" type="com.huawei.deployer.view.ElementObjectForm"></form-bean>
    <form-bean name="packagesForm" type="com.huawei.deployer.view.PackagesForm"></form-bean> 
    <form-bean name="hostForm" type="com.huawei.deployer.view.HostForm"></form-bean>
  </form-beans>
  <global-exceptions />
  <global-forwards>
      <forward name="toTaskRightPage" path="/page/taskRight.jsp"></forward>   
  </global-forwards>
  <action-mappings>
    <action
      path="/task"
      name="taskForm"
      parameter="method"
      type="com.huawei.deployer.view.TaskAction">
      <forward name="toTaskListPage" path="/page/taskList.jsp"></forward>
      <forward name="toAddTaskPage" path="/page/addTask.jsp"></forward>
      <forward name="toLogPage" path="/page/log.jsp"></forward>
      <forward name="toExecutePage" path="/page/execute.jsp"></forward>
      <forward name="toTaskFramePage" path="/page/taskFrame.jsp"></forward>
      <forward name="toUpdateTaskPage" path="/page/updateTask.jsp"></forward>
      <forward name="toDoingTaskListPage" path="/page/doingTaskList.jsp"></forward>
      <forward name="toDoneTaskListPage" path="/page/doneTaskList.jsp"></forward>
    </action>
    <action
      path="/packages"
      name="packagesForm"
      parameter="method"
      scope="request"
      type="com.huawei.deployer.view.PackagesAction">     
      <forward name="toSoftwareListPage" path="/page/softwareList.jsp"></forward>
      <forward name="toAddSoftwarePage" path="/page/addSoftware.jsp"></forward>
      <forward name="toUpdateSoftwarePage" path="/page/updateSoftware.jsp"></forward>       
    </action>  
    <action
      path="/host"
      name="hostForm"
      parameter="method"
      type="com.huawei.deployer.view.HostAction">
      <forward name="toHostListPage" path="/page/hostList.jsp"></forward>
      <forward name="toAddHostPage" path="/page/addHost.jsp"></forward>
      <forward name="toHostDetailPage" path="/page/hostDetail.jsp"></forward>
      <forward name="toUpdateHostPage" path="/page/updateHost.jsp"></forward>    
    </action>
    <action
      path="/ElementObject"
      name="elementObjectForm"
      parameter="method"
      type="com.huawei.deployer.view.ElementObjectAction">
      <forward name="toAddElementObjectPage" path="/page/addElement.jsp"></forward>
      <forward name="toElementObjectDetailPage" path="/page/elementDetail.jsp"></forward>
      <forward name="toTaskLeftPage" path="/page/taskLeft.jsp"></forward>
      <forward name="toSingleExecutePage" path="/page/execute.jsp"></forward>     
    </action>
  </action-mappings>
  <message-resources parameter="com.huawei.deployer.view.ApplicationResources" />
</struts-config>

你可能感兴趣的:(apache,xml,struts)