Java编程

  • IOS开发
  • android开发
  • PHP编程
  • JavaScript
  • ASP.NET
  • ASP编程
  • JSP编程
  • Java编程
  • 易语言
  • Ruby编程
  • Perl编程
  • AJAX
  • 正则表达式
  • C语言
  • 编程开发

    struts构建文件上传(九)

    2018-05-16 07:55:44 次阅读 稿源:互联网
    非官媒广告

      最后看看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

    非官媒部分新闻及文章转载自互联网,供读者交流和学习,若有涉及作者版权等问题请及时与我们联系,以便更正、删除或按规定办理。感谢所有提供资讯的网站,欢迎各类媒体与非官媒进行文章共享合作。

    非官媒广告
    非官媒广告
    非官媒广告