struts构建文件上传(四)


关键词

struts构建文件上传(四)

摘要

与actionform相对应的jsp页面

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">
<title>Add TrainPlan</title>
</head>

                               ??
与actionform相对应的jsp页面

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">
<title>Add 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%" nowrap><strong>Title</strong></td>
<td width="22%" nowrap><html:text maxlength="50" property="trainPlan.p_title" size="50"/></td>
<td width="11%" nowrap><div align="center"><strong>Issue Time</strong></div></td>
   <td width="22%" nowrap><html:text property="trainPlan.issue_time" size="10"/>
     <html:button value="Date" property="Submit"/></td>
   <td width="10%" nowrap><div align="center"></div></td>

 </tr>
 <tr>
   <td nowrap> </td>
   <td nowrap><strong>Post Index</strong></td>
   <td nowrap>
   </td>
   <td nowrap><div align="center"><strong>Issuer</strong></div></td>
   <td nowrap><html:text maxlength="10" property="trainPlan.issuer" size="10"/></td>


   <td height="30" colspan="8" nowrap><div 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%" nowrap><strong>TrainPlan Content</strong>:<span class="InputAreaCell"><strong><br>
   </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" nowrap><div 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"><strong>Accessory1
         <html:file maxlength="60" property="theFile1" size="60"/>
         <br>Accessory2
         <html:file maxlength="60" property="theFile2" size="60"/>
         <br>Accessory3
         <html:file maxlength="60" property="theFile3" size="60"/>
         <br>

</strong></span></td>

 </tr>
 
 <tr>
   <td height="30" colspan="8" nowrap><div 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>
                                       



 

要饭二维码

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

文章的版权

本文属于“洪哥笔记”原创文章,转载请注明来源地址:struts构建文件上传(四):http://www.splaybow.com/post/jsp4.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)