网络编程 | 站长之家 | 网页制作 | 图形图象 | 操作系统 | 冲浪宝典 | 软件教学 | 网络办公 | 邮件系统 | 网络安全 | 认证考试 | 系统进程
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,移动开发
本月文章推荐
.JDK Observer设计模式之研究.
.JAVA+ACCESS编程体会.
.J2EE中几种业务代理模式的实现和.
.NetInstallSUNOS.
.Java的秘密:Swing的实用工具.
.编写一个动画Applet.
.J2ME开发经验:J2ME应用程序内存.
.Java socket 入门编程实例.
.IBM向Eclipse捐献代码 推广软件结.
.利用DES加密算法保护Java源代码.
.emf-sdo-xsd-SDK-2.0.1.
.MIDP1.0小游戏入门-五子棋1.0.
.用Java从网上抓取指定URL源码的方.
.JDBC 连接MySQL 问题.
.应用Java技术实现数据库应用系统.
.下一代软件架构--SOA(面向服务架.
.自我参考:Java学习的30个目标.
.HelloWord 编译方法以及常见错误.
.toLocaleTimeString 方法.
.Java语言深入 final在java中的应.

struts构建文件上传(三)

发表日期:2008-1-5



  这是第二个类action
package tester.business.maitain;

import org.apache.struts.action.*;
import Javax.servlet.http.*;
import org.apache.struts.upload.*;

public class MaintainForm
extends ActionForm {

/** private String p_title;
private int post_index;
private String issue_time;
private String issue;
private String p_content;
private String p_Accessory;
private int p_id;
private java.util.ArrayList post_indexOpts;
*/
private Trainplan trainPlan = new Trainplan();
private org.apache.struts.upload.FormFile theFile1;
private org.apache.struts.upload.FormFile theFile2;
private org.apache.struts.upload.FormFile theFile3;

public String getP_title() {
return trainPlan.getP_title();
}

public void setP_title(String p_title) {
trainPlan.setP_title(p_title);
}

public void setTrainPlan(Trainplan trainP) {
this.trainPlan = trainP;

}

public Trainplan getTrainPlan() {
return this.trainPlan;

}

public void setTheFile1(org.apache.struts.upload.FormFile theFile1) {
this.theFile1 = theFile1;
}

public org.apache.struts.upload.FormFile getTheFile2() {
return theFile2;
}

public void setTheFile2(org.apache.struts.upload.FormFile theFile2) {
this.theFile2 = theFile2;
}

public org.apache.struts.upload.FormFile getTheFile3() {
return theFile3;
}

public void setTheFile3(org.apache.struts.upload.FormFile theFile3) {
this.theFile3 = theFile3;
}

public org.apache.struts.upload.FormFile getTheFile1() {
return theFile1;
}

public ActionErrors validate(ActionMapping actionMapping,
HttpServletRequest httpServletRequest) {
/**@todo: finish this method, this is just the skeleton.*/
return null;
}

public void reset(ActionMapping actionMapping,
HttpServletRequest httpServletRequest) {
}

}
上一篇:struts构建文件上传(四) 人气:1723
下一篇:SWT/JFace入门指南之初步体验widget 人气:731
浏览全部Java的内容 Dreamweaver插件下载 网页广告代码 祝你圣诞节快乐 2009年新年快乐