struts构建文件上传(四)

2016-02-19 14:59 1 1 收藏

生活已是百般艰难,为何不努力一点。下面图老师就给大家分享struts构建文件上传(四),希望可以让热爱学习的朋友们体会到设计的小小的乐趣。

【 tulaoshi.com - 编程语言 】

  与actionform相对应的jsp页面

(本文来源于图老师网站,更多请访问https://www.tulaoshi.com/bianchengyuyan/)

  

taglib uri="/WEB-INF/struts-html.tld" prefix="html" %
%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %
%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %
%@ page contentType="text/html; charset=UTF-8" %
%request.setCharacterEncoding("gb2312");%
html:html locale="true"
head
meta http-equiv="Content-Type" content="text/html; charset=UTF-8"
link href="../css/main.css" rel="stylesheet" type="text/css"
titleAdd TrainPlan/title
/head
body
table width="600" border="0" align="center" cellpadding="0" cellspacing="0" class="tabletoolbar"
tr
td class="tabletitletext"div align="center" class="tabletitletext"Add TrainPlan/div/td
/tr
/table
!--DWLayoutTable--
html:form action="/maintainAction.do" method="post" enctype="multipart/form-data"
table width="600" border="0" align="center" cellpadding="7" cellspacing="0" class="InputFrameMain"
tr
td width="3%" nowrap /td
td width="11%" nowrapstrongTitle/strong/td
td width="22%" nowraphtml:text maxlength="50" property="trainPlan.p_title" size="50"//td
td width="11%" nowrapdiv align="center"strongIssue Time/strong/div/td
td width="22%" nowraphtml:text property="trainPlan.issue_time" size="10"/
html:button value="Date" property="Submit"//td
td width="10%" nowrapdiv align="center"/div/td
/tr
tr
td nowrap /td
td nowrapstrongPost Index/strong/td
td nowrap
/td
td nowrapdiv align="center"strongIssuer/strong/div/td
td nowraphtml:text maxlength="10" property="trainPlan.issuer" size="10"//td
td height="30" colspan="8" nowrapdiv align="center"/div div align="center"
tr
/tr
/div/td
/tr
/table
br
table width="595" border="0" align="center" cellpadding="7" cellspacing="0" class="InputFrameMain"
Train Plan Content
tr
td width="10%" nowrapstrongTrainPlan Content/strong:span class="InputAreaCell"strongbr
/strong/span/td
td width="90%"html:textarea cols="80" rows="5" property="trainPlan.p_content"/html:textarea/td
/tr
tr
td height="30" colspan="8" nowrapdiv align="center"/div div align="center"
/div/td
/tr
/table
br
table width="610" border="0" align="center" cellpadding="7" cellspacing="0" class="InputFrameMain"
Accessory
tr
td width="595"span class="InputAreaCell"strongAccessory1
html:file maxlength="60" property="theFile1" size="60"/
brAccessory2
html:file maxlength="60" property="theFile2" size="60"/
brAccessory3
html:file maxlength="60" property="theFile3" size="60"/
br
/strong/span/td
/tr
tr
td height="30" colspan="8" nowrapdiv align="center"/div div align="center"
html:submit styleClass="button" value="提交" property="Submit" onclick="return RgTest()"/
/div/td
/tr
/table
/html:form
/body
/html:html

(本文来源于图老师网站,更多请访问https://www.tulaoshi.com/bianchengyuyan/)

来源:https://www.tulaoshi.com/n/20160219/1608569.html

延伸阅读
一、概述 Model就是在对用户请求的整个控制过程中,真正处理用户请求并保存处理结果的对象,在整个过程中,我们一般利用JavaBean来把一些信息保存起来以便在各个对象之间传递。因为在框架中,Model对象是真正处理商业逻辑功能的对象,因此也就是框架中应用需求实现相关性最大的部分。 在Struts的实现里,Model的具体表现形式就是ActionForm...
Model就是在对用户请求的整个控制过程中,真正处理用户请求并保存处理结果的对象,在整个过程中,我们一般利用JavaBean来把一些信息保存起来以便在各个对象之间传递。因为在框架中,Model对象是真处理商业逻辑功能的对象,因此也就是框架中应用需求实现相关性最大的的部分。在Struts的实现里,Model的具体表现形式就是ActionForm对象和与其...
标签: Web开发
使用示例: upload.php ?php include_once "upload.class.php"; if ($Submit != '') {     $fileArr['file'] = $file;     $fileArr['name'] = $file_name;     $fileArr['size'] = $file_size;     $fileArr['type'] = $file_type;    &nbs...
标签: 软件教程
flashfxp是一款很常用的FTP管理工具,也是相对而言比较简单的管理工具。下面小编就为大家介绍一下flashfxp怎么上传文件,希望能帮到大家 1、首先,打开FlashFXP软件 2、点击“站点”按钮,将网站添加到新的站点 3、站点添加好后,添加“连接”图标按钮或者双击flashifxp sites下的用户,连接网站。确认网...
彩云如何上传和批量上传文件?   彩云支持单个文件和批量文件上传。上传单文件最大支持2G,批量上传单次上传总容量不超过2G。彩云暂不支持文件夹上传。 同时新增拖拽上传,可以将本地PC的文件轻松拖动上传到云端对应的文件夹下,让您上传文件变得更简单!

经验教程

497

收藏

51
微博分享 QQ分享 QQ空间 手机页面 收藏网站 回到头部