网络编程 | 站长之家 | 网页制作 | 图形图象 | 操作系统 | 冲浪宝典 | 软件教学 | 网络办公 | 邮件系统 | 网络安全 | 认证考试 | 系统进程
Firefox | IE | Maxthon | 迅雷 | 电驴 | BitComet | FlashGet | QQ | QQ空间 | Vista | 输入法 | Ghost | Word | Excel | wps | Powerpoint
asp | .net | php | jsp | Sql | c# | Ajax | xml | Dreamweaver | FrontPages | Javascript | css | photoshop | fireworks | Flash | Cad | Discuz!
当前位置 > 网站建设学院 > 网络编程 > Java
Tag:注入,存储过程,分页,安全,优化,xmlhttp,fso,jmail,application,session,防盗链,stream,无组件,组件,md5,乱码,缓存,加密,验证码,算法,cookies,ubb,正则表达式,水印,索引,日志,压缩,base64,url重写,上传,控件,Web.config,JDBC,函数,内存,PDF,迁移,结构,破解,编译,配置,进程,分词,IIS,Apache,Tomcat,phpmyadmin,Gzip,触发器,socket
网络编程:ASP教程,ASP.NET教程,PHP教程,JSP教程,C#教程,数据库,XML教程,Ajax,Java,Perl,Shell,VB教程,Delphi,C/C++教程,软件工程,J2EE/J2ME,移动开发
本月文章推荐
.Java小技巧:关于Cookie的操作.
.未支持的操作.
.实例学习Struts.
.JAVA初学基础问题.
.代码最优化.NET中的内存管理.
..NET 和 Java 之碰撞火花:到底谁.
.JXTA概念介绍(翻译).
.你好,wiki.
.详解XML与J2EE组合技术的精髓(1).
.Spring 2.0 M1发布了.
.使用JavaServer Pages技术生成动.
.Servlet技术及其与CGI的比较.
.编写高级应用程序1.
.用JavaScript实现网页特效二例.
.利用Observer模式解决组件间通信.
.软件的架构设计.
.Java中与注释有关的语法.
.在JBoss下开发、部署EJB.
.关于applet写入文件的处理.
.Java编程思想读书笔记(第5-7章.

struts构建文件上传(四)

发表日期:2008-1-5



  
与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构建文件上传(六) 人气:1491
下一篇:struts构建文件上传(三) 人气:1464
浏览全部Java的内容 Dreamweaver插件下载 网页广告代码 祝你圣诞节快乐 2009年新年快乐