网站首页
JSP空间
动态资讯
开源项目
技术文档
资源下载
J2EE资源
客户论坛
在线支付
 
  技术文档>>JAVA>>新手入门>>基础入门>查看文档  
  struts构建文件上传(二)     
  文章作者:未知  文章来源:水木森林  
  查看:124次  录入:管理员--2007-11-17  
 
  这是第二个类actionform,
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构建文件上传(一)    下一篇: struts构建文件上传(三)
  相关文档
用 java me 进行无线消息传递 11-17
为什么要学习java,成为java程序员? 11-17
如何编写安全的Java代码 04-14
在solairs字符界面下,支持多虚拟操作台 11-17
将form保存到图片中 11-17
在 freebsd 4.9 下安装java环境 11-17
java servlet和jsp教程(1) 11-17
toprecision 方法 11-16
如何用servlet在客户端生成一个合成图片 11-17
数据库相关:hibernate对多表关联查询 01-09
scjp braindumps 05/15/2002 11-17
你知道java中float的取值范围吗 11-17
实例讲解如何用struts向mysql中储存图片 02-18
使用jfreereport生成报表 11-17
用jdom操作xml文件 11-17
用j2se 1.4进行internet安全编程(下)(1) 11-17
java多态性 11-17
sun宣布发布更多免费软件 11-17
final方法 11-17
在eclipse 3.1体验j2se 5.0新特性六 11-17
返回首页 | 关于我们 | J网章程 | JSP空间合租 | 客服中心 | 免责声明 | 常见问题 | 参观机房
本站主机空间代理至厦门市华众网络科技有限公司
《中华人民共和国增值电信业务经营许可证》
编号:闽B2-20050079
@2005-2008福建JSP技术网 版权所有 闽ICP备05000928号
技术电话:13616026886
邮箱:admin@fjjsp.com 站长QQ,点击这里给我发消息