Your Ad Here
首页 | 编程语言 | 网站建设 | 游戏天堂 | 冲浪宝典 | 网络安全 | 操作系统 | 软件时空 | 硬件指南 | 病毒相关 | IT 认证
软讯网络 > 编程语言 > Java > struts构建文件上传(2)
【标  题】:struts构建文件上传(2)
【关键字】:文件,上传,文件上传,struts,str,struts
【来  源】:网络

struts构建文件上传(2)

Your Ad Here struts构建文件上传(2)

这是第二个类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 体系结构与工作原理(2):【上一篇】
struts构建文件上传(1):【下一篇】
【相关文章】
  • 浅析Struts 体系结构与工作原理(2)
  • struts构建文件上传(3)
  • struts构建文件上传(4)
  • struts构建文件上传(5)
  • struts构建文件上传(6)
  • struts构建文件上传(7)
  • struts构建文件上传(8)
  • struts构建文件上传(9)
  • API文件产生器-javadoc.exe
  • 头文件生成器-javah.exe
  • 【随机文章】
  • 牛人就是牛人
  • C创建稀疏文件
  • Delphi开发单机瘦小数据库程序要点
  • 利用JavaMail收/发Gmail邮件SSL
  • 招聘广告:微软广州 v- IW TSP
  • Multboolean for c++/python
  • 感觉fedora 4这个系统很耗资源
  • 关于MSIL的学习心得
  • 链表的C语言实现之动态内存分配
  • 组件开发之asp.net 2.0获取设计时页面的虚拟路径[DesignTime page's virtual path]
  • 【相关评论】
    没有相关评论
    【发表评论】
    姓名:
    邮件:
    随机码*
    评论*
          
    |  首 页  |  版权声明  |  联系我们   |  网站地图  |
    CopyRight © 2004-2007 bbb软讯网络 All Rigths Reserved.