网站首页
JSP空间
动态资讯
开源项目
技术文档
资源下载
J2EE资源
客户论坛
在线支付
 
  技术文档>>JAVA>>新手入门>>基础入门>查看文档  
  struts构建文件上传(三)     
  文章作者:未知  文章来源:水木森林  
  查看:117次  录入:管理员--2007-11-17  
 
  这是第二个类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构建文件上传(二)    下一篇: struts构建文件上传(四)
  相关文档
设计模式(1)factory模式和abstract factory模式 11-17
递归 11-16
用rmi建立一个分布式java应用程序详解 11-16
详解xml与j2ee组合技术的精髓(1) 11-16
具有邮编区号查询功能的js+xml版 11-17
定制你的java--根据应用剪裁javabeans 11-17
java手机软件图形界面api之form相关api 11-16
j2ee核心:ibatis dao入门与进阶二 11-17
编程需要注意的陷阱:java继承是有害的 11-16
java入门笔记9_socket 11-17
java套接字实现网络编程之基础篇 11-17
设计和优化 microsoft windows ce .net 11-17
编写自己的缓冲区溢出利用程序 11-17
was 5.x中数据源的配置使用及常见问题 11-17
留言板 11-17
java嵌入式开发之j2me--三 11-17
使用技巧:共享内存在java中实现和应用 11-16
精通j2me中的hello world 11-16
java中的类型转换与强制类型转换的实现 11-16
基于tomcat5.5的数据库连接池环境设置 11-17
返回首页 | 关于我们 | J网章程 | JSP空间合租 | 客服中心 | 免责声明 | 常见问题 | 参观机房
本站主机空间代理至厦门市华众网络科技有限公司
《中华人民共和国增值电信业务经营许可证》
编号:闽B2-20050079
@2005-2008福建JSP技术网 版权所有 闽ICP备05000928号
厦门(总部):13616026886 福州:0591-87655121
邮箱:admin@fjjsp.com 站长QQ,点击这里给我发消息