程序師世界是廣大編程愛好者互助、分享、學習的平台,程序師世界有你更精彩!
首頁
編程語言
C語言|JAVA編程
Python編程
網頁編程
ASP編程|PHP編程
JSP編程
數據庫知識
MYSQL數據庫|SqlServer數據庫
Oracle數據庫|DB2數據庫
 程式師世界 >> 編程語言 >> JAVA編程 >> 關於JAVA >> struts構建文件上傳(九)

struts構建文件上傳(九)

編輯:關於JAVA

最後看看struts-config頁面的內容

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.1//EN" "http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd">
<struts-config>
<form-beans>
<form-bean name="examineeActionForm" type="tclcc.tester.business.ExamineeActionForm" />
<form-bean name="maintainForm" type="tclcc.tester.business.maitain.MaintainForm" />
<form-bean name="addPlanForm" type="tclcc.tester.business.maitain.AddPlanForm" />
</form-beans>
<global-forwards>
<forward name="veiwtrainplan" path="/veiwtrainplan.jsp" />
</global-forwards>
<action-mappings>
<action name="examineeActionForm" path="/admin/showMain" type="tclcc.tester.business.ShowMain">
<forward name="success" path="/admin/examinee/main.jsp" />
</action>
<action input="/admin/examinee/addExaminee.jsp" name="examineeActionForm" path="/admin/saveAddExaminee" type="tclcc.tester.business.SaveAddExamineeAction">
<forward name="success" path="/admin/showMain.do" />
</action>
<action name="examineeActionForm" path="/admin/addExaminee" type="tclcc.tester.business.AddExamineeAction">
<forward name="success" path="/admin/examinee/addExaminee.jsp" />
</action>
<action input="/admin/maintain/planManage.jsp" name="maintainForm" path="/maintainAction" scope="request" type="tclcc.tester.business.maitain.MaintainAction" validate="true">
<forward name="trainplanCreated" path="/veiwtrainplan.jsp" />
</action>
<action name="maintainForm" path="/initAction" scope="request" type="tclcc.tester.business.maitain.InitAction" validate="true">
<forward name="maintain" path="/admin/maintain/planManage.jsp" />
</action>
</action-mappings>
</struts-config>

這裡的數據庫連接等都要讀者自己配置,我們在開發這個試驗時的環境為weblogic+jbuilder+oracle

  1. 上一頁:
  2. 下一頁:
Copyright © 程式師世界 All Rights Reserved