struts构建文件上传(九)


关键词

struts构建文件上传(九)

摘要

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

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



 

要饭二维码

洪哥写文章很苦逼,如果本文对您略有帮助,可以扫描下方二维码支持洪哥!金额随意,先行谢过!大家的支持是我前进的动力!

文章的版权

本文属于“洪哥笔记”原创文章,转载请注明来源地址:struts构建文件上传(九):http://www.splaybow.com/post/strutsJSP3.html

如果您在服务器运维、网络管理、网站或系统开发过程有需要提供收费服务,请加QQ:8771947!十年运维经验,帮您省钱、让您放心!
亲,如果有需要,先存起来,方便以后再看啊!加入收藏夹的话,按Ctrl+D

« struts构建文件上传(八) struts构建文件上传(补充说明) »

相关文章:

JSP动态包含  (2014/6/28 8:32:24)

JSP静态包含  (2014/6/27 8:24:43)

Java参数化查询无法得到可更新的记录集  (2014/6/26 9:29:00)

jsp包含文件与被包含文件的contentType必须完全一致  (2014/6/25 9:19:33)

Java可以定义元素个数为0的数组  (2014/6/23 11:24:23)

Java中XML的构造与输出  (2014/3/29 11:51:08)

Java中如何把整形int转换成字符串String类型  (2014/3/28 11:31:28)

自动添加超链接  (2014/1/17 9:43:23)

使用keytool生成私钥  (2014/1/2 20:58:48)

Java递归算法示例  (2013/12/29 19:19:50)